[go: up one dir, main page]

0% found this document useful (0 votes)
7 views1 page

Conditions Example6

The document provides an example of an optimized IF statement that checks the internal variable $_CAPSLOCK_ON. If this variable is TRUE, it outputs the message 'The caps lock key is on'. This demonstrates how to utilize conditional statements effectively in programming.

Uploaded by

y2901773
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Conditions Example6

The document provides an example of an optimized IF statement that checks the internal variable $_CAPSLOCK_ON. If this variable is TRUE, it outputs the message 'The caps lock key is on'. This demonstrates how to utilize conditional statements effectively in programming.

Uploaded by

y2901773
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

REM Example of optimized IF statement

REM with internal variable

IF $_CAPSLOCK_ON THEN
STRINGLN The caps lock key is on
END_IF

REM The internal variable $_CAPSLOCK_ON is checked.


REM If it evaluates as TRUE, the message “The caps lock key is on” is typed.

You might also like