How can I check in Velocity if a string contains multiple particular substrings? (see in my code the "elseif" and "else")
What I tried and what didn't work:
#set($tc=$pageParameters.Test_Choice.values)
#if($tc.toString().contains("description"))
Text1
#elseif($tc.toString().contains("description" && "module"))
Text2
#else($tc.toString().contains("description" && "module" && "status"))
Text3
#end
I have also tried it with "," instead of "&&", but that also didn't work.
Aucun commentaire:
Enregistrer un commentaire