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 [email protected] -----Original Message----- From: Søren Krogh Neigaard [mailto:[email protected]] Sent: 16. februar 2011 11:00 To: [email protected] 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
