Change bolean from API Call

When I get API call with a number it is easy to multiply it ex. by -1 and get the negative value.

What is the way to change the Boolean from API call to reverse one?
To change yes to no and no to yes. Like “~value”.

I am looking for something I can make in 1 field, but if I have to 1 additional step then OK.

Use the following expression:
Boolean’s value is no.

If boolean is yes → no.
If boolean is no → yes.

But where do you want meto use it? In the field where I get the bolean value?
image
Or create 2 additional steps that has condition if bolean is yes then make changes to a thing → no.

Ideally yes.

That is another way of doing it. But with my suggestion you do not need to create multiple conditions.

OK, then I still do not know how to properly handle this - what is the syntax there?
Value = no and what next - as I cannot continue after that statement.

Screenshot 2024-08-27 at 2.53.58 PM

This is all. This negates the value. i.e. makes true(yes) to false(no) and false(no) to true(yes).