Pixel-Composer/scripts/FirebaseFirestore_operationFromSymbol/FirebaseFirestore_operationFromSymbol.gml

15 lines
446 B
Plaintext
Raw Normal View History

2023-11-14 14:29:11 +01:00
function FirebaseFirestore_operationFromSymbol(opStr)
{
switch (opStr)
{
case ">=": return Firestore_Query_greater_than_or_equal;
case ">": return Firestore_Query_greater_than;
case "<=": return Firestore_Query_less_than_or_equal;
case "<": return Firestore_Query_less_than;
case "==": return Firestore_Query_equal;
case "!=": return Firestore_Query_not_equal;
default: throw "[ERROR] Firestore: invalid query operation.";
}
}