Logical Expressions

John Dixon dixonja at hotmail.co.uk
Mon Jun 6 03:21:18 EDT 2011


  
Does this work for you... shedding the outer brackets ?
 if (gUSL <= pos_vrange) AND (gUSL >= neg_vrange) then



> What is the best way to do multiple logical comparisons and get them to work?
> 
> For example
> 
>   if ((gUSL <= pos_vrange) AND (gUSL >= neg_vrange))  then
>                get TRUE
>                put it into tTester[x]["rng_check"]
>             else
>                get FALSE
>                put it into tTester[x]["rng_check"]
>             end if
>          
> This does NOT work, while below does work.  I need to get the top one to work
> 
>   if ((gUSL <= pos_vrange) )  then
>                get TRUE
>                put it into tTester[x]["rng_check"]
>             else
>                get FALSE
>                put it into tTester[x]["rng_check"]
>             end if
> 
> Thanks in advance,
> Van
 		 	   		  


More information about the use-livecode mailing list