| cmd_if | Function (ROM Call 0x354)

AMS 1.01 or higher | bascmd.h

void cmd_if (CESI condition);

Executes TI-Basic 'If' command.

This is an internal subroutine used by TI-Basic interpreter for executing simple If instructions (skips the next expression or tokenized TI-Basic statement if the condition is not true). As this function depends heavily on some system state variables of the TI-Basic intepreter which are not set correctly while executing an ASM program, it is extremely unlikely that this function may be used inside a C program for anything useful.
Note: See the `if` and `else` keywords to learn how to implement conditional execution in the C language.

Uses: next_expression_index, push_internal_simplify, top_estack, NG_control, ROM Call 0x5C8

See also: cmd_ifthen