*** Start of test
user=#if(${user})${user}#elseN/A#end
simple if - visible
#end #if(${hihi})simple if - invisible
#end #if(${impossible.reference})simple if - invisible
#end #if(${hehe})if with null else - visible
#else#end #if(${hihi})if with null else - invisible
#else#end #if(${impossible.reference})if with null else - invisible
#else#end #if(${hehe})if with else - visible
#elseelse with if - invisible
#end #if(${hihi})if with else - invisible
#elseelse with if - visible
#end #if(${impossible.reference})if with else - invisible
#elseelse with if - visible
#end #if(${hehe})#elseelse only with if - invisible
#end #if(${hihi})#elseelse only with if - visible
#end #if(${impossible.reference})#elseelse only with if - visible
#endEnding text for the if test
simple unless - invisible
#end #unless(${hihi})simple unless - visible
#end #unless(${impossible.reference})simple unless - visible
#end #unless(${hehe})unless with null else - invisible
#else#end #unless(${hihi})unless with null else - visible
#else#end #unless(${impossible.reference})unless with null else - visible
#else#end #unless(${hehe})unless with else - invisible
#elseelse with unless - visible
#end #unless(${hihi})unless with else - visible
#elseelse with unless - invisible
#end #unless(${impossible.reference})unless with else - visible
#elseelse with unless - invisible
#end #unless(${hehe})#elseelse only with unless - visible
#end #unless(${hihi})#elseelse only with unless - invisible
#end #unless(${impossible.reference})#elseelse only with unless - invisible
#endEnding text for the unless test
1, #if(${hehe})2, #if(${hehe})3, #if(${hehe})4, #if(${hehe})5, #if(${hehe})6, #if(${hehe})7, #if(${hehe})8, #if(${hehe})9, #if(${hehe})10, #if(${hehe})11, #if(${hehe})12, #if(${hehe})13, #if(${hehe})14, #if(${hehe})15, #if(${hehe})16, #if(${hehe})17, #if(${hehe})18, #if(${hehe})19, #if(${hehe})20, #if(${hehe})21, #if(${hehe})22, #if(${hehe})23, #if(${hehe})24, #if(${hehe})25, #if(${hehe})26, #if(${hehe})27, #if(${hehe})28, #if(${hehe})29, #if(${hehe})30, #if(${hehe})31
31, #end 30, #end 29, #end 28, #end 27, #end 26, #end 25, #end 24, #end 23, #end 22, #end 21, #end 20, #end 19, #end 18, #end 17, #end 16, #end 15, #end 14, #end 13, #end 12, #end 11, #end 10, #end 9, #end 8, #end 7, #end 6, #end 5, #end 4, #end 3, #end 2, #end 1
#endEnd of very nested if (31 levels)...
Inside if
#for(${abc})The def column: ${abc.def}
The ghi column: ${abc.ghi}
#if(${hehe})Inside inner if
#for(${abc.xyz})The x column: ${abc.xyz.x}
The y column: ${abc.xyz.y}
The z column: ${abc.xyz.z}
#endOut of inner for
#end #endOut of for
#endEnd of mixed for and if...
| ${pgresult.firstfield} | ${pgresult.secondfield} | ${pgresult.thirdfield} | #if(${pgresult.first})First row | #else#end #if(${pgresult.last}) | Last row | #else#end #if(${pgresult.odd}) | Odd row | #elseEven row | #end
End of something from the PostgreSQL database
| ${myresult.firstfield} | ${myresult.secondfield} | ${myresult.thirdfield} | #if(${myresult.first})First row | #else#end #if(${myresult.last}) | Last row | #else#end #if(${myresult.odd}) | Odd row | #elseEven row | #end
End of something from the MySQL database
| ${pgupperresult.firstfield} | ${pgupperresult.secondfield} | ${pgupperresult.thirdfield} | #if(${pgupperresult.first})First row | #else#end #if(${pgupperresult.last}) | Last row | #else#end #if(${pgupperresult.odd}) | Odd row | #elseEven row | #end
End of something from the PostgreSQL database: in uppercase
| ${myupperresult.firstfield} | ${myupperresult.secondfield} | ${myupperresult.thirdfield} | #if(${myupperresult.first})First row | #else#end #if(${myupperresult.last}) | Last row | #else#end #if(${myupperresult.odd}) | Odd row | #elseEven row | #end
End of something from the MySQL database: in uppercase
A PostgreSQL escaped string=${pgsql-escaped}
A MySQL escaped string=${mysql-escaped}
| ${shrunk.firstfield} | ${shrunk.secondfield} | ${shrunk.thirdfield} | #if(${shrunk.first})First row | #else#end #if(${shrunk.last}) | Last row | #else#end #if(${shrunk.odd}) | Odd row | #elseEven row | #end
End of something shrunk...
| ${stretched.firstfield} | ${stretched.secondfield} | ${stretched.thirdfield} | #if(${stretched.first})First row | #else#end #if(${stretched.last}) | Last row | #else#end #if(${stretched.odd}) | Odd row | #elseEven row | #end
End of something stretched...
| ${selected.firstfield} | ${selected.secondfield} | ${selected.thirdfield} | #if(${selected.selected})SELECTED | #elsenot selected | #end
End of something stretched...
application key 1 = ${application-key-1}
application key 2 = ${application-key-2}
End of something from the application
session key 1 = ${session-key-1}
session key 2 = ${session-key-2}
End of something from the session
spinparameter1 = ${spinparameter1}
spinparameter2 = ${spinparameter2}
End of application configuration parameters
sessionid = ${sessionid}
sessionvalid = ${sessionvalid}
End of session id and validity
Trimmed = "${trimmed}"
Trimmed string = "${trimmedstring}"
Counted1 = "${counted1}"
Counted2 = "${counted2}"
*** End of test