Chapter Contents

Previous

Next
IF

IF



Evaluates an expression and conditionally executes one or more debugger commands


Syntax
Details
Examples

Syntax

IF expression THEN clause <; ELSE clause>

expression
contains a condition to be evaluated before one or more commands are executed.

clause
contains either a single debugger command or a debugger DO list.


Details

The IF command immediately evaluates an expression and conditionally executes one or more debugger commands. The expression will contain dot notation because it resolves to a numeric variable. Character variables are converted.

The IF command must contain a THEN clause with one or more commands to execute if the expression is true. It can also contain an ELSE clause with one or more commands to execute if the expression is false. The ELSE clause must be separated from the THEN clause with a semicolon, and the ELSE clause cannot be entered separately.


Examples


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.