If you arrive with a programming language already in your head, this appendix is your fastest route in: the same intent, side by side. (Python shown; the JavaScript translation is the obvious one.)
| Intent | Python | Skode Skript |
|---|---|---|
| assignment | counter = 0 | set counter to 0 |
| increment | counter += 1 | increase counter by 1 |
| string build | f"Hi {name}" | "Hi {name}" |
| concatenation | "a" + str(n) | "a" + n |
| list literal | ["a", "b"] | "a", "b" |
| append | xs.append(v) | add v to xs |
| conditional | if x > 500: … else: | if x is above 500 then … otherwise |
| substring test | "vip" in s.lower() | s contains "vip" |
| counted loop | for _ in range(3): | repeat 3 times |
| iteration | for ch in chs: | for each ch in chs |
| while | while c < 5: | while c is below 5 |
| function | def welcome(): | to welcome the lead |
| call | welcome() | welcome the lead |
| early exit | return / sys.exit() | stop |
| comment | # note | # note |
print(x) | log "{x}" |
The deeper translations are about what is missing, and each absence follows from the language's purpose:
- No parameters or return values. Skript functions share one namespace with the event — "set the stage, then say the sentence." Where you would design a signature, you name a variable.
- No boolean operators in conditions.
and/orcompose steps, not tests. Conjunction is nesting; disjunction is twoifs; complex predicates become a well-named function. - No objects, dicts, indexing, imports, or I/O. The event is the record; the nine actions are the I/O; the marketplace is the import system. If you reach for a dictionary, the design is asking for Skode itself (or the SDK) rather than a skript.
- No exceptions to catch. Errors halt the run with an English sentence and a line number. Guard clauses (
if email is "" then … stop) replace try/except, and the sandbox replaces defensive programming.
The mental shift that makes Skript pleasant rather than confining: you are not writing an application, you are writing policy — the sentence a good operations manager would say out loud. Python remains the right tool for computing things. Skript is the right tool for deciding things, and it will refuse, politely and by design, to become the former.