How do I write else if loop in groovy evaluator
Example: the if-else loop in expression evaluator is written in below way:
${record:value('/phone_home[0]') != ' ' ? record:value('/phone_home[0]'):
(record:value('/phone_home[1]') != ' ' ? record:value('/phone_home[1]'):
(record:value('/phone_home[2]') != ' ' ? record:value('/phone_home[2]'): ' '))}
How do I implement Same-Example thing in groovy evaluator,
Since there are dynamic number of rows coming each time, [sometimes number is 10, sometimes 100 etc, so need to write for-loop]