velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Krogh Neigaard <Soren.Krogh.Neiga...@Systematic.com>
Subject indexOf or startsWith in a velocity if statement
Date Wed, 16 Feb 2011 09:59:49 GMT
Hello

How can I check if a variable starts with a specific word, like in Java indexOf or startsWith?
For eksample:

if($someVar.indexOf("Hello") != -1)

Med venlig hilsen / Kind regards
Søren Krogh Neigaard


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message