Hi Assemlber, you wrote:
>On Sun, 21 Nov 1999 [EMAIL PROTECTED] wrote:
>
>>      if [ a = 0 ] [ 
>>           print [ "this is true "]
>>              return true
>>              ]; end if
>> 
>
>arbit: func [] [
>    print :a
>    either :a = 0 [
>       print ["This is true"]
>       return true ; Although not needed because either will return true
>    ][
>       print ["False"]
>       return false
>    ]
>]

Note that your implementation acts a little different from subhra's
version. In subhra's version 'a could be a function. If the function
returns 0 it will be handled as though 'a was directly assigned the value 0.

>> a: 0
== 0
>> arbit
0
this is true
== true
>> a: func [] [0]
>> arbit
0
this is true
== true
>>

In your version a function that returns 0 is not handled like a word that
directly references the value 0:

>> a: 0
== 0
>> arbit
0
This is true
== true
>> a: func [] [0]
>> arbit
?function?
False
== false


Elan

Reply via email to