doc: add more inline conditional expressions to sample file

This commit is contained in:
2024-12-04 16:41:34 +00:00
parent 84f3704db0
commit 7d2e945384

View File

@@ -30,4 +30,4 @@ age = Person new(name:"John Doe" age:34)
--q = 10 if x > 2. --q = 10 if x > 2.
--q = if x > 2 then 10 else 20 end. --q = if x > 2 then 10 else 20 end.
cout put:5 multiply(by:5 add:2). cout put:5 multiply(by:5 add:2) if x > 2.