From 17b3739f756a1e713704b22cce89307308cea2d8 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 20:33:13 +0000
Subject: [PATCH] add else if to the if

---
 test_scripts/object.vs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/test_scripts/object.vs b/test_scripts/object.vs
index cd88c71..753bc57 100644
--- a/test_scripts/object.vs
+++ b/test_scripts/object.vs
@@ -33,4 +33,13 @@
     printnl("Child1 is old enough to go to school.");
 } else {
     printnl("Child1 is too young to go to school.");
+}
+
+for (string $key, auto $value : $person2) {
+
+    if (typeof($value,"object") == false) {
+        printnl("Key: ", $key, " Value: ", $value);
+    }else {
+        printnl("Key: ", $key, " is an object");
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3