How do i swap boolean in caie pseudocode

how do i use swap boolean in pseudocode of replit

I’m not sure I understand your question, can you please re-state it? And a Repl link would make it easier for us to help you.


Uh, it’s pseudo code. However you want. :upside_down_face:

1 Like

well, what A(S) Level CIE calls pseudocode is an actual language used in exam questions. You get an insert in the exam with the “pseudocode” functions & operators, but it’s good to understand the language before exams so you don’t have to think about syntax

not sure what you mean by “swap boolean”. To change whether a condition is true or false, you use NOT <condition>