You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opposite Results in isDefined code examples for Adobe ColdFusion 2023.
There are 3 code example sections in the isDefinedpage.
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)
The text was updated successfully, but these errors were encountered:
The reason for this is that CF2021 is running update 12 on trycf.com currently, which is not the latest version. I think the difference is due to the searchImplicitScope change in the recent CF update. Details here: https://www.petefreitag.com/blog/cf-searchimplicitscopes/
Thanks for pointing this out, we will have to update that example to note that the result now differs based on what version of CF you are using.
Opposite Results in
isDefined
code examples for Adobe ColdFusion 2023.There are 3 code example sections in the
isDefined
page.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".
Adobe ColdFusion 2023
Adobe ColdFusion 2021
The text was updated successfully, but these errors were encountered: