A simple scripting language in C++
Ferenc Szontágh
2025-04-18 3bb117e4fee72c4d4019c575bf0cb21043584954
test_scripts/object.vs
@@ -26,4 +26,11 @@
printnl("Child1 old age: ",$person2->children->age);
$person2->children->age = $person2->children->age + 2;
printnl("Child1 new age: ",$person2->children->age);
printnl("Child1 new age: ",$person2->children->age);
int $age = 10;
if ($person2->children->age > 18) {
    printnl("Child1 is old enough to go to school.");
} else {
    printnl("Child1 is too young to go to school.");
}