| cmd_ifthen | Function (ROM Call 0x355)

AMS 1.01 or higher | bascmd.h

void cmd_ifthen (CESI condition);

Executes TI-Basic 'If'...'Then' command.

cmd_ifthen is an internal subroutine used by TI-Basic interpreter for executing 'If'...'EndIf' and 'If'...'Else'...'EndIf' blocks (searches for a matching 'Else', 'ElseIf' or 'EndIf' instruction and transfers the control there 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, index_after_match_endtag, NG_control, ROM Call 0x5C8

See also: cmd_else, cmd_if