ifs in transformations : gender

D Collins asked on March 10, 2014 10:45

I've got an XML document and I'm using Transformation Type Text/XML on it.

Recent Answers

Richard Sustek answered on March 13, 2014 02:01


You can use K# syntax with an If condition like:

// returns "z is lesser than 3"
{% z = 1; if (z<3) {"z is lesser than 3"} %}

For more please see http://devnet.kentico.com/docs/devguide/ksharp_syntax.htm

Kind regards,

Richard Sustek

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.