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 (last edited on March 24, 2018 12:15)


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"} |(user)zbynekh|(hash)84bb5d43812210e26e85a7b52d5d0c64696a50a1726f265a55558ac7f19f2ace%}

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

Kind regards,

Richard Sustek

1 votesVote for this answer Mark as a Correct answer

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