PickBASIC / FlashBASIC
BASIC operators
.mdThe following BASIC operators are available.
In this section
! logical operator→The ! logical operator indicates an or operation in a logical expression.# relational operator→The # relational operator signifies not equal to.& logical operator→The and boolean operator indicates that both components of a logical expression must be true.* arithmetic operator→The * (asterisk) arithmetic operator is a mathematical operator indicating a multiply operation.*= assignment operator→The *= assignment operator multiplies a numeric expression and assigns it to the variable.+ arithmetic operator→The + arithmetic operator performs addition or indicates a positive numeric value.+= assignment operator→The += assignment operator adds a given numeric expression and assigns it to the given variable.- arithmetic operator→The - arithmetic operator designates a subtraction operation, or to indicate a negative numeric value.\ arithmetic operator→The \ operator (also called the remainder operator) calculates the remainder of dividing the dividend by the divisor (otherwise known as the modulo).\= assignment operator→The \= assignment operator divides a variable by a given numeric expression and assigns the remainder (modulo) to the variable.^ arithmetic operator→The ^ symbol arithmetic operator is an alternate means of indicating an exponentiation operation on a specific numeric expression.-= assignment operator→The -= assignment operator decrements a variable by a numeric expression./ arithmetic operator→The / arithmetic operator performs division./= assignment operator→The /= assignment operator divides a variable by a numeric expression and assigns it to the given variable.: relational operator→The : (colon) relational operator concatenates strings in an assignment statement or, when the : displays at the end of a print or crt expression, suppresses the automatic CR/LF combination, thus holding the current print/display position. It is also used as a token within the input @ statement.:= assignment operator→The := assignment operator concatenates a string to a variable and assigns it back to the given variable.<= relational operator→The <= relational operator is the less than or equal to operator.<> relational operator→The <> relational operator represents a not equal to operator.= assignment operator→The = assignment operator represents either the assignment operator in an assignment statement or a relational operator in a conditional expression.> relational operator→The >relational operator is the greater than operator.>< relational operator→The >< relational operator is the not equal operator.>= relational operator→The >= relational operator is the greater than or equal to operator.and logical operator→The and logical operator indicates that both components of a logical expression must be true.cat relational operator→The cat relational operator concatenates strings in an expression.eq assignment operator→The eq assignment operator represents either the assignment operator in an assignment statement or a relational operator in a conditional expression.ge relational operator→The ge relational operator denotes a greater than or equal condition between two elements.gt relational operator→The gt relational operator denotes a greater than condition between two elements.le relational operator→The le relational operator represents the less than or equal to (<=) condition.lt relational operator→The lt relational operator is used in conditional expressions as an alternate form of the less than (<) condition.match relational operator→The match relational operator tests a string and determines if it matches a predefined pattern of alphabetical, numeric, wildcard, or literal characters.ne relational operator→The ne relational operator represents a not equal to condition within relational expressions.or logical operator→The or logical operator indicates that only one of the components of a logical expression need be true for the expression to evaluate as true.