Join Now

Click here to join our
growing community:

JOIN LOGIN



Docs

Welcome Tour
Handbook
      Markups
      Variables
      Conditions
      Functions
      Forms
      Commands
      Concepts
Extensions
Pro Modules
Developers



Copyright © 2020
Terms of Use
Privacy Policy
BoltWire

Handbook

Number

A simple conditional used to tell if a value is a number.

Suppose you had a forum with each post given a name like forum.1000, forum.1001, forum.1002, etc. In that folder you wanted to use forum.footer to add a comment box if it was a forum page, but NOT if it is forum.search or forum.side, etc. In your footer, simply do this:

[if number {p2}]Add comment box here...[if]

You could also use it in a search function to return just the actual forum posts. The following are essentially equivalent:

[(search group=forum* if='number {+p2}' template=forum)]
[(search group=forum* type=number template=forum)]