cancel
Showing results for 
Search instead for 
Did you mean: 

Aegument handling web script

tushar115
Champ in-the-making
Champ in-the-making
<p>${text!}</p>


what is the use of ! in  this code?
1 REPLY 1

steven_okennedy
Star Contributor
Star Contributor
THe ! is freemarker's default value operator.  Basically if the variable you're trying to access is null, the value after the ! is used.  In this case, there's no value after the !, so the result will be the empty string, an empty hash or empty sequence (probably a string in your case above).  See http://freemarker.org/docs/dgui_template_exp.html#dgui_template_exp_missing_default for more detail