<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#program_flow_control|Program Flow Control]] ===== if ===== ^Arguments^Result^Notation^ |bool| | [bool-] | === Description === bool ARG1: The value to evaluate

Evaluate the first element on the stack. If True, then execute statements that follow, up to the endif or else statement. If False, execution skips to the first statement following the endif or else statement. Any nonzero value is considered True, a value of zero is False. === Examples === if (<-var eq (1)) #Do Something endif