This commit is contained in:
justumen
2025-03-19 17:36:25 +01:00
parent 44d69e8907
commit 39dfb0220a
76 changed files with 3207 additions and 955 deletions

View File

@@ -12,6 +12,7 @@ class IfElse:
"STRING: input EQUAL TO compare_with",
"STRING: input NOT EQUAL TO compare_with",
"BOOLEAN: input IS TRUE",
"BOOLEAN: input IS FALSE",
"NUMBER: input GREATER THAN compare_with",
"NUMBER: input GREATER OR EQUAL TO compare_with",
"NUMBER: input LESS THAN compare_with",
@@ -61,6 +62,9 @@ class IfElse:
elif input_type == "BOOLEAN: input IS TRUE":
result = str(input).lower() in ("true", "1", "yes", "y", "on")
details += f"\nChecked if '{input}' is considered True"
elif input_type == "BOOLEAN: input IS FALSE":
result = str(input).lower() in ("false", "0", "no", "n", "off")
details += f"\nChecked if '{input}' is considered True"
else: # Numeric comparisons
try:
input_num = float(input)