Tech Tip: Proper syntax when using 4D Transformation tags with Dollar Sign ($) Syntax
PRODUCT: 4D | VERSION: 15 R4 | PLATFORM: Mac & Win
Published On: July 1, 2016
Beginning with 4D v15 R4 4D introduces the a new OPTIONAL syntax for three 4D Transformation tags, 4DTEXT, 4DHTML and 4DEVAL. This new sysntax, $4DTAG( expression ), is call Dollar Sign Syntax.
Instead of the traditional <!--#4DTEXT -->, <!--#4DHTML --> and <!--#4DEVAL -->, the new systax is $4DTEXT(), $4DHTML() and $4DEVAL().
An important detail in avoiding errors when using the the 4D Transformation tags with Dollar Sign Syntax is spacing.
When working with the traditional tags there is a space character between the tag itself and the expression in the tag. When using the new Dollar Sign Syntax there is no space between the tag and the opening parenthisis "(".
This little detail is very critical for your Dollar Sign Syntax tags to work.