EasyCoder documentation

    

Conditions

A condition is what you test using an if command.

The core domain has a number of conditions to do with testing for equality, for the relative size of numbers and for true/false.

Examples:
if Text is `yes` ...
if Text is not `FAILED` ...
if N is 8 ...
if N is not 8 ...
if Y is greater than X ...
if Y is less than X ...
if Y is not greater than X ...
if Y is not less than X ...
if Flag ...
if true ... ! always true
if false ... ! always false
if N is even ...
if N is odd ...

The browser domain has a single condition, that tests if the device appears to be a smartphone. This allows you to alter the appearance and content of your page in ways that go well beyond what WordPress responsive themes can manage.

Example:
if mobile ...