The IfThen function checks the expression passed as AValue, and returns the value of ATrue if the expression is True, or returns the value of AFalse if the expression is False.

Please refer to the string function IfThen for more information.