If

You can use the IF Command to do control flow in your tiImport script.
AND, OR, NOT and parenthesis are supported in the logic.
Currently only the Equals operator is supported.
ELSE is optional in the IF statement

Syntax:
IF expression1 = expression2 THEN
statementList
{ELSE
statementList}
END IF