Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AND and OR evaluations in conditional statements
Message
 
 
To
13/04/1999 10:51:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206066
Message ID:
00208050
Views:
30
Bill,

Yes, VFP as it parses the logical expression understands the overall structure of operators (NOTs, ANDs and ORs) and operands (memvars, fields, object properties and function calls). Expressions like these are typically put into a binary tree for evaluation, the optimizer can eliminate whole subtrees quite easily if it knows they can't affect the overall value of the expression.

>Agreed with your statement. However what Jim said about VFP having to evaluate the operator type ( i.e. AND, OR, etc. ) is required to determine whether the expression result must be evaluated, correct?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform