RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*If

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *If

*If

Use

This *Command executes a *Command conditionally, depending on the value of an expression.

Syntax

*If expression Then command [Else command]

Parameters

expression Integer expression
command Valid *Command

Notes

For a comprehensive list of expressions, please see the Expression? page. This command only allows for integer expressions, including variable names (enclosed in angled brackets).

If a variable is to be compared to a string, both must be enclosed in double quotes.

See also

  • Expression?
  • *Eval
  • *IfThere
  • *SetEval
Revised on January 22, 2010 23:13:16 by Andrew Hodgkinson (6) (127.0.0.1)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *IfThere, *Eval

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys