Opposite Results in isDefined code examples for Adobe ColdFusion 2023.
There are 3 code example sections in the isDefined page.
- Using IsDefined
- Scope Evaluation Order and Unscoped Variables
- Dot-notation Variable Names
Below each example I see an "Expected Result". When I click on the "RUN CODE" button for each code example, the Current Engine value is defaulted to Adobe ColdFusion 2023.
When I run the code for the second and third code examples the results are different than the "Expected Result". Switching to a different server, Adobe ColdFusion 2011 for example, will generate results that match the "Expected Result".
Dot-notation Variable Names
Adobe ColdFusion 2023
Is 'form.submit' defined?YES (local['form.submit'])
Is 'submit' defined? NO
Adobe ColdFusion 2021
Is 'form.submit' defined?YES (local['form.submit'])
Is 'submit' defined? YES (form.submit)