ARKStatsExtractor icon indicating copy to clipboard operation
ARKStatsExtractor copied to clipboard

Name generator AND gate?

Open Joebosh opened this issue 3 years ago • 1 comments

I was wondering if it is possible to do logic gates in the automatic name generator? I am trying to setup automatic name generation to test two different factors simultaneously. An AND gate would be helpful, but I have no clue how to do it. Something like this {{#ifexpr: {topPercent} == 100 AND {sex} == Male | King }}

Joebosh avatar Jul 23 '22 23:07 Joebosh

Hi, to test two conditions with an and, you can nest the if statements, to use your example, do {{#ifexpr: {topPercent} == 100 | {{#ifexpr: {sex} == Male | King | {{#ifexpr: {sex} == Female | Queen }} }} }} to name a male creature with all top stat King and a female Queen.

cadon avatar Jul 25 '22 16:07 cadon