Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif(lExp, .t., .f.)?
Message
From
22/01/2010 10:03:00
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01445223
Message ID:
01445459
Views:
46
>>>>
if lExpr = .t.
>>>>is identical to
>>>>
if lExpr
>>>
>>>In certain cases I use the above notation. In what cases? In cases where I want the reader to read natural English "IF THIS IS TRUE" or "IF THIS IS FALSE" rather than computer logic language.
>>
>>The second one is "IF THIS IS TRUE". The first one reads ""IF THIS TRUE is TRUE". Nothing natural about that.
>
>Example:
IF THIS.VALUE = .F.
reads as IF THIS VALUE IS FALSE.

if you apply first form, then:
 IF (THIS.VALUE = .F) = .T.
If you simplify this, then you must simplify the first:
 IF THIS.VALUE = .T.

become

 IF THIS.VALUE 
and we return to minimal form.
Previous
Reply
Map
View

Click here to load this message in the networking platform