Add support for evaluating BOOL and introduce basic logical operators as functions
This commit is contained in:
@@ -54,6 +54,10 @@ class Type(Enum):
|
||||
"dot": Type.string('.' if value.dot else '')
|
||||
})
|
||||
|
||||
@staticmethod
|
||||
def bool(value):
|
||||
return Value(Type.BOOL, value, {})
|
||||
|
||||
@staticmethod
|
||||
def sound(value):
|
||||
return Value(Type.SOUND, value, {
|
||||
|
||||
Reference in New Issue
Block a user