Variables & Data

ConceptTypical EquivalentPseudocodeMeaning
Assignmentvariable = valueCREATE <variable> AS <value>Create a named place to remember a value.
Reassignmentvariable = newValueCHANGE <variable> TO <value>Replace the value already stored in a variable.
Booleanbool / booleanSWITCHA value with two states, such as true/false or on/off.
Array/Listarray / listCREATE <list name> AS LIST WITH <values>Store several values together in an ordered group.
Dictionary/Mapdictionary / map / objectCREATE <map name> AS MAP WITH <keys: values>Store values by named keys.

Operators & Comparisons

ConceptTypical EquivalentPseudocodeMeaning
Equal==ISCheck whether two values are equal.
Not equal!=IS NOTCheck whether two values are different.
Strictly equal===IS EXACTLYCheck equality without loose type conversion.
Strictly not equal!==IS NOT EXACTLYCheck strict inequality.
Greater than>GREATER THANCheck whether the left value is larger.
Less than<LESS THANCheck whether the left value is smaller.
Greater or equal>=GREATER OR EQUAL TOCheck whether a value is at least another value.
Less or equal<=LESS OR EQUAL TOCheck whether a value is no more than another value.
Modulus%MODULUSReturn the remainder after division.
Power**TO THE POWER OFRaise a number to a power.
Increment++ADD ONE TO <variable>Increase a number by one.
Decrement--SUBTRACT ONE FROM <variable>Decrease a number by one.

Utilities

ConceptTypical EquivalentPseudocodeMeaning
Outputprint / console.log / WriteLineSHOW <message>Display information to the user.
Inputinput / readASK <question> SAVE IN <variable>Ask the user for information and remember the answer.
Comment// / # / /* */EXPLANATION <text>Leave a note for humans that the program does not execute.

Program Structure & Flow

ConceptTypical EquivalentPseudocodeMeaning
Sequencemain()SEQUENCE <name>A set of instructions for the computer to run in order.

Conditions & Branching

ConceptTypical EquivalentPseudocodeMeaning
IfifIF <condition> THEN ... END IFRun instructions only when a condition is true.
Else Ifelse if / elifOR IF <condition> THENTry another condition when the earlier one was false.
ElseelseOTHERWISE ...Run fallback instructions when no earlier condition matched.

Loops & Repetition

ConceptTypical EquivalentPseudocodeMeaning
Repeat Untildo/while style loopREPEAT UNTIL <condition> ... END REPEATKeep repeating until a stopping condition becomes true.
Repeat WhilewhileREPEAT WHILE <condition> ... END REPEATKeep repeating while a condition stays true.
For Eachfor each / for ... inFOR EACH <item> IN <list> ... END FORRun the same instructions once for every item in a group.

Functions & Reuse

ConceptTypical EquivalentPseudocodeMeaning
Function/Methodfunction / def / methodACTION <name> ... END ACTIONCreate a reusable set of instructions.
Function CallfunctionName()CALL ACTION <name>Run a reusable action.
ReturnreturnSEND <value> BACKGive a result back to the code that called the action.

Objects & Blueprints

ConceptTypical EquivalentPseudocodeMeaning
ClassclassBLUEPRINT <name> ... END BLUEPRINTDefine a reusable blueprint for objects with shared data and behavior.
Objectnew / instanceCREATE <blueprint> AS <object>Create a real object from a blueprint.