# Conditional Processing and Logic Functions and Operators

The following list includes both WebAssign-specific and commonly-used Perl functions and operators that are available when creating questions.

Operation

Usage

Notes

Conditional Behavior

if (condition)
{do_if_true}
else
{do_if_false};

An abbreviated form is:

(condition) ?
do_if_true :
do_if_false;

Logical And, Or, Not

&&   ||   !

You can also use the words and, or, not — but the symbols have higher precedence.