@If command

Used in a Server.Load script to execute [Commands] if [Value] is non-zero. @If is used to execute multiple commands or to use an @Else condition.

Syntax

@If [Value] [Commands] [@Else [Commands]] @EndIf

Where:

  • [Value] -- Typically a NOTES.INI setting

Example

This example executes the Delete command, only if [DeleteDoc] is defined in the NOTES.INI file and is non-zero; otherwise, the Add command is executed:

@If [DeleteDoc]
	Delete 1
@Else
 	Add 1
@EndIf