Takes a single Field name, with an optional Not operator, followed by the conditional statement
Description:
FieldName is used as a boolean test where if the field is empty it is False and if it has any data it is True. The optional Not
operator may be used to reverse this logic. The statement that follows the Then
will be skipped if the evaluation is False. If / Then
may be used within an If / End If
block.
For TopQuery assignments, do not use If / Then
, use the [If]
assignment operator instead
Example:
[Pull] Req.IsPost Req.Mode
If Not ($SessionIsBad)
If Req.IsPost Then Update "MemTab.Person"
If Not Req.IsPost Then Get "MemTab.Person"
NewName [If] Req.Mode = "Post" Then (FirstName && LastName)
End If