Converting true and false to custom text

I’ve been trying to convert true and false to comply and does not comply texts, but after first “ReplaceByCondition” node it seems like the second stage does not react, even though, I do it the same way. Anyone?

Hi @arun0169

Are you trying to accomplish this?

value = test ? 0 : 1;
returnedValue = [True, False][value];

That’s correct! Thank you!

That is a nice method.

There is also the “IF” Node.

There is also a nice dictionary keys node from…spring nodes? steam nodes?

I don’t remember which package…and I think there is also an OTB version of this…anyways…it is very useful for changing return values based on keys or replacing multiple strings

1 Like

Thank you for suggestions!