*** Start of test

Authenticated user

user=#if(${user})${user}#elseN/A#end

Initial text for the if test

#if(${hehe})

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

#else

else with if - invisible

#end #if(${hihi})

if with else - invisible

#else

else with if - visible

#end #if(${impossible.reference})

if with else - invisible

#else

else with if - visible

#end #if(${hehe})#else

else only with if - invisible

#end #if(${hihi})#else

else only with if - visible

#end #if(${impossible.reference})#else

else only with if - visible

#end

Ending text for the if test

Initial text for the unless test

#unless(${hehe})

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

#else

else with unless - visible

#end #unless(${hihi})

unless with else - visible

#else

else with unless - invisible

#end #unless(${impossible.reference})

unless with else - visible

#else

else with unless - invisible

#end #unless(${hehe})#else

else only with unless - visible

#end #unless(${hihi})#else

else only with unless - invisible

#end #unless(${impossible.reference})#else

else only with unless - invisible

#end

Ending text for the unless test

A very nested if (31 levels)...

#if(${hehe})

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

#end

End of very nested if (31 levels)...

Mixed for and if...

#if(${hehe})

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}

#end

   Out of inner for

#end #end

Out of for

#end

End of mixed for and if...

Something from the PostgreSQL database

#for(${pgresult}) #if(${pgresult.first}) #else #end #if(${pgresult.last}) #else #end #if(${pgresult.odd}) #else #end #end
${pgresult.firstfield} ${pgresult.secondfield} ${pgresult.thirdfield}First row Last row Odd rowEven row

End of something from the PostgreSQL database

Something from the MySQL database

#for(${myresult}) #if(${myresult.first}) #else #end #if(${myresult.last}) #else #end #if(${myresult.odd}) #else #end #end
${myresult.firstfield} ${myresult.secondfield} ${myresult.thirdfield}First row Last row Odd rowEven row

End of something from the MySQL database

Something from the PostgreSQL database: in uppercase

#for(${pgupperresult}) #if(${pgupperresult.first}) #else #end #if(${pgupperresult.last}) #else #end #if(${pgupperresult.odd}) #else #end #end
${pgupperresult.firstfield} ${pgupperresult.secondfield} ${pgupperresult.thirdfield}First row Last row Odd rowEven row

End of something from the PostgreSQL database: in uppercase

Something from the MySQL database: in uppercase

#for(${myupperresult}) #if(${myupperresult.first}) #else #end #if(${myupperresult.last}) #else #end #if(${myupperresult.odd}) #else #end #end
${myupperresult.firstfield} ${myupperresult.secondfield} ${myupperresult.thirdfield}First row Last row Odd rowEven row

End of something from the MySQL database: in uppercase

A PostgreSQL escaped string=${pgsql-escaped}

A MySQL escaped string=${mysql-escaped}

Something shrunk...

#for(${shrunk}) #if(${shrunk.first}) #else #end #if(${shrunk.last}) #else #end #if(${shrunk.odd}) #else #end #end
${shrunk.firstfield} ${shrunk.secondfield} ${shrunk.thirdfield}First row Last row Odd rowEven row

End of something shrunk...

Something stretched...

#for(${stretched}) #if(${stretched.first}) #else #end #if(${stretched.last}) #else #end #if(${stretched.odd}) #else #end #end
${stretched.firstfield} ${stretched.secondfield} ${stretched.thirdfield}First row Last row Odd rowEven row

End of something stretched...

Something selected...

#for(${selected}) #if(${selected.selected}) #else #end #end
${selected.firstfield} ${selected.secondfield} ${selected.thirdfield}SELECTEDnot selected

End of something stretched...

Something from the application

application key 1 = ${application-key-1}

application key 2 = ${application-key-2}

End of something from the application

Something from the session

session key 1 = ${session-key-1}

session key 2 = ${session-key-2}

End of something from the session

Application configuration parameters

spinparameter1 = ${spinparameter1}

spinparameter2 = ${spinparameter2}

End of application configuration parameters

Session id and validity

sessionid = ${sessionid}

sessionvalid = ${sessionvalid}

End of session id and validity

Trimmed = "${trimmed}"

Trimmed string = "${trimmedstring}"

Counted1 = "${counted1}"

Counted2 = "${counted2}"

*** End of test