3 ways to check for nil value
1. To test for a Nil value in a variable, you can concatenate a known value like a period to the variable and then check to see if the period and variable are equal. If they are equal, the variable had a Nil value. If the equation is not equal you know that the variable was not Nil. The following logic is one valid way to check for a Nil value:
IF{/SOMEVALUE_.=. DO SOMETHING}
2. Length/Locate
IF{L(@field)=0 "value is nil";"value is not nil"}
3. @Not(@field) in an IF statement
Friday, September 26, 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment