Oh i can just use Java syntax... Great! Sorry for asking. Med venlig hilsen / Kind regards
Søren Krogh Neigaard Systems Engineer Systematic A/S Søren Frichs Vej 39 8000 Aarhus C Denmark Mobile: +4541965252 soren.krogh.neiga...@systematic.com -----Original Message----- From: Søren Krogh Neigaard [mailto:soren.krogh.neiga...@systematic.com] Sent: 16. februar 2011 11:00 To: user@velocity.apache.org Subject: indexOf or startsWith in a velocity if statement 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-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org