07-31-2007, 04:47 PM
if(something)
is the same as
if(something not = 0)
In this case, the return value of the function is that "something".
----
----
Small error in documentation. Must be " Returns a nonzero value on OK, 0 on Cancel."[/code]
is the same as
if(something not = 0)
In this case, the return value of the function is that "something".
----
str s
if(BrowseForFolder(s "$windows$"))
,out "OK"
else
,out "Cancel"
;or
if(BrowseForFolder(s "$windows$")!=0)
,out "OK"
else
,out "Cancel"
;or
if(!BrowseForFolder(s "$windows$"))
,out "Cancel"
else
,out "OK"
;or
if(BrowseForFolder(s "$windows$")=0)
,out "Cancel"
else
,out "OK"
;or
int ok=BrowseForFolder(s "$windows$")!=0
if(ok)
,out "OK"
else
,out "Cancel"
;or
ok=BrowseForFolder(s "$windows$")!=0
if(ok!=0)
,out "OK"
else
,out "Cancel"
----
Small error in documentation. Must be " Returns a nonzero value on OK, 0 on Cancel."[/code]