mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
0.77
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user