A thorough understanding of the operators is essential for correctly combining smaller expressions to produce larger ones. While evaluating logical values, the outcome may come out as YES or NO, but the interpreter may not recognize it, resulting in a runtime error with a message saying variable 'YES' or 'NO' not found. You will be required to define 'YES' and 'NO' to be associated with 'TRUE' and 'FALSE'. This can be easily verified by commenting out the definitions of 'YES' and 'NO' in logical2.cfm. Also, care should be taken to pay attention to the precedence of operators for correct interpretation. The function evaluate(), introduced without much of an explanation, is a very useful function. It parses and evaluates the expression supplied as an argument, at run time.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |