UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Related Commands UniBasic CALL, CHAIN, COMMON, GOSUB 1-258 UniBasic Commands Reference

EQ Syntax variable = expr expr1 EQ expr2 Synonym = Description The UniBasic EQ operator serves as an assignment operator and a relational operator. As an assignment operator, it assigns expr to variable. As a relational operator, it tests whether expression expr1 is equal to expr2. expr1 and expr2 can be any valid UniBasic expressions, variables, strings, or literals. Relational operators make the comparisons that direct program flow in conditional statements like the following: IF VAR1 = VAR2 THEN GOSUB SUB1 DO UNTIL VAR1 = VAR2 Parameters The following table describes each parameter of the syntax. Parameter Description variable Specifies the variable to which to assign the contents of expr. expr Specifies a value, string, expression, or variable the value of which variable is assigned to. EQ Parameters EQ 1-259

EQ<br />

Syntax<br />

variable = expr<br />

expr1 EQ expr2<br />

Synonym<br />

=<br />

Description<br />

The <strong>UniBasic</strong> EQ operator serves as an assignment operator and a relational operator.<br />

As an assignment operator, it assigns expr to variable. As a relational operator, it tests<br />

whether expression expr1 is equal to expr2.<br />

expr1 and expr2 can be any valid <strong>UniBasic</strong> expressions, variables, strings, or literals.<br />

Relational operators make the comparisons that direct program flow in conditional<br />

statements like the following:<br />

IF VAR1 = VAR2 THEN GOSUB SUB1<br />

DO UNTIL VAR1 = VAR2<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

variable Specifies the variable to which to assign the contents of expr.<br />

expr Specifies a value, string, expression, or variable the value of which variable<br />

is assigned to.<br />

EQ Parameters<br />

EQ 1-259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!