Before we go any further, let’s clarify exactly when number signs are needed and when they’re not.
Simply put, number signs are needed to flag functions and variables within a string of text.
In this first example, the number signs are obviously needed:
But what about when a variable is used within a tag, like this?
Here number signs are not necessary because ColdFusion assumes that anything passed to a tag is a function or variable unless explicitly defined as a string. So the following is incorrect:
This code will actually work (ColdFusion is very forgiving), but it is still incorrect and should not ...