A simple scripting language in C++
Ferenc Szontágh
2025-04-19 bc2e09a3b7a4e414814b56be71ec5c540b8eb4d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
string $test = "Test string";
 
 
if ($test == "Test string") {
    printnl("Test passed");
} else {
    printnl("Test failed");
}
 
 
bool $this_is_okay = true;
bool $this_is_not_okay = false;
 
 
if ($this_is_okay && $this_is_not_okay == false && $test == "Test string") {
    printnl("This is okay");
}
 
if ($this_is_okay == false) {
    printnl("This is not okay");
}