1.

How Do You Use A Logical Variable? What Is Stored There?

Answer»

Most frequently, LOGICAL variables are USED in association with IF statements. When you want to set a logical variable LVAR to true you use "LVAR=.TRUE.". For FALSE use "LVAR=.FALSE." In PRACTICE the computer usually stores an integer 0 in memory for false and integer 1 for true. The normal logical variable occupies 1 byte of space.

Most frequently, logical variables are used in association with IF statements. When you want to set a logical variable LVAR to true you use "LVAR=.TRUE.". For false use "LVAR=.FALSE." In practice the computer usually stores an integer 0 in memory for false and integer 1 for true. The normal logical variable occupies 1 byte of space.



Discussion

No Comment Found