Skip to content

=ALL

Equal Repeated Character

This string function provides a temporary string variable with a preset value. It can only be used in the condition of an IF directive or WHILE/WEND directive.

=ALL string-value
string-value
is any string whose first character is used in the comparison of the IF directive.

This function is a combination of the equal sign and the word “ALL”. There is no valid combination for other operators, such as not equal, and the word “ALL”.

IF STRING_VALUE$ = ALL "A"

tests STRING_VALUE$ to see if it contains all “A” characters, regardless of the length of STRING_VALUE$.

IF STRING_VALUE$ <> ALL "B"

generates a syntax error (ERR=20) since the equal sign is the only valid operator with the word “ALL”.

IF/THEN/ELSE/FI and WHILE/WEND directives

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF