SupportArea

BoltWire is a FREE content management system written in PHP.

Its innovative architecture combined with best-in-class forms processing makes it ideal for creating complex, interactive, web applications fast...


Documentation

Markups
Variables
Conditions
Functions
Forms
Commands
Cheatsheet

Documentation

Handbook > Conditions > Less

This function requires two parameters and checks to see if the second term is less than the first. If numbers, it will check the mathematical value, if letters, it will check it alphabetically.

The first two pass, the second two fail.

[if less 10 20]true[if]
[if less a c]true[if]
[if less 20 10]false[if]
[if less c a]false[if]

If the second term matches the first one, it will return false. To create less than or equal use the negative of more. Consider the following:

[if less 3 3]false[if]
[if ! more 3 3]true[if]

For comparison purposes, numbers are considered lower than letters. So the first condition passes below, but the second one fails

[if less 5 c]true[if]
[if less c 5]false[if]