0% found this document useful (0 votes)
14 views

Operator functions

something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Operator functions

something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad something adasda sdas das d as da w e w e qwe q we a d a sd as dad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 14

Operator functions

[
{
"name": "EqualTo",
"descriptions": [
"Returns true if both the given values are equal otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "NotEqualTo",
"descriptions": [
"Returns true if both the given values are not equal otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "GreaterThan",
"descriptions": [
"Returns true if the first value is greater than the second value otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "GreaterThanOrEqualTo",
"descriptions": [
"Returns true if the first value is greater than or equal to the second value
otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "IsEmpty",
"descriptions": [
"Returns true if the value is empty otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "[]",
"innerType": "?"
}
],
"argumentLength": "1"
}
]
},
{
"name": "IsNotEmpty",
"descriptions": [
"Returns true if the value is not empty otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "[]",
"innerType": "?"
}
],
"argumentLength": "1"
}
]
},
{
"name": "LessThan",
"descriptions": [
"Returns true if the first value is less than the second value otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
},
{
"name": "LessThanOrEqualTo",
"descriptions": [
"Returns true if the first value is less than or equal to the second value
otherwise, false"
],
"valueType": "Boolean",
"targetField": {
"fieldType": "Switch"
},
"category": "General",
"arguments": [
{
"label": "arg1",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
},
{
"label": "arg2",
"valueTypes": [
{
"valueType": "Text",
"innerType": null
},
{
"valueType": "Double",
"innerType": null
}
],
"argumentLength": "1"
}
]
}
]

Here are some examples to guide you to understand what type of output I need:

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Check if name is equal to John
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":{"type":"Simple","valueType":"Text","name":"Name","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":"John"}],"f
unctionName":"EqualTo"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Marks”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Check if marks is equal to 80 or not
Answer:{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"marks","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":"80"}],"fun
ctionName":"NotEqualTo"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Min age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query: See if the age is higher than the minimum age.
Answer:
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"Age","part":null}},
{"type":"Variable","valueType":"Double","argLabel":"arg2","children":null,"scope":"current
","part":{"type":"Simple","valueType":"Double","name":"Min
age","part":null}}],"functionName":"GreaterThan"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query: Check if Name is greater than or equal to John cena
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":{"type":"Simple","valueType":"Text","name":"Name","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":"John
cena"}],"functionName":"GreaterThanOrEqualTo"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query: Check if Address is greater than or equal to MaxChars
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"GreaterThanOrEqualTo"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Do subjects have any value or not?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"?
[]","argLabel":"arg1","children":null,"scope":"current","part":
{"type":"Range","valueType":"?
[]","name":"Subjects","part":null}}],"functionName":"IsEmpty"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Does the name have a value?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":
{"type":"Simple","valueType":"Text","name":"Name","part":null}}],"functionName":"IsNotE
mpty"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
What is the length of the name?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Double","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":
{"type":"Simple","valueType":"Text","name":"Name","part":null}}],"functionName":"Length
"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Is the age under 20?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"Age","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":"20"}],"fun
ctionName":"LessThan"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Does the age meet or fall below the minimum age requirement?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"Age","part":null}},
{"type":"Variable","valueType":"Double","argLabel":"arg2","children":null,"scope":"current
","part":{"type":"Simple","valueType":"Double","name":"Min
age","part":null}}],"functionName":"LessThanOrEqualTo"}]}

Context Variables:
[
{“name”: “Name”, “type”: “Text”},
{“name”: “Month”, “type”: “Number”},
{“name”: “Age”, “type”: “Number”},
{“name”: “Subjects”, “type”: “List”, options: {“innerType”: “Text”}}
]
Query:
Are the marks different from 90?
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"Marks","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":"90"}],"fun
ctionName":"NotEqualTo"}]}

Context Variables:
[
{"name": "EmployeeName", "type": "Text"},
{"name": "Position", "type": "Text"},
{"name": "Salary", "type": "Number"},
{"name": "Departments", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if EmployeeName is equal to null.
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":{"type":"Simple","valueType":"Text","name":"EmployeeName","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"EqualTo"}]}

Context Variables:
[
{"name": "ProjectTitle", "type": "Text"},
{"name": "DeadlineMonth", "type": "Number"},
{"name": "TeamMembers", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if Budget is not equal to PredictedBudget
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"NotEqualTo"}]}

Context Variables:
[
{"name": "ProjectTitle", "type": "Text"},
{"name": "DeadlineMonth", "type": "Number"},
{"name": "TeamMembers", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if “TestString” is not equal to PredictedBudget
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":"TestStrin
g"},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"NotEqualTo"}]}

Context Variables:
[
{"name": "CustomerName", "type": "Text"},
{"name": "OrderAmount", "type": "Number"},
{"name": "DiscountPercentage", "type": "Number"},
{"name": "PurchasedItems", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if OrderAmount is greater than
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"OrderAmount","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"GreaterThan"}]}

Context Variables:
[
{"name": "CustomerName", "type": "Text"},
{"name": "OrderAmount", "type": "Number"},
{"name": "DiscountPercentage", "type": "Number"},
{"name": "PurchasedItems", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if 24 is greater than
Answer:
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":"24"},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"GreaterThan"}]}

Context Variables:
[
{"name": "EmployeeName", "type": "Text"},
{"name": "Position", "type": "Text"},
{"name": "Salary", "type": "Number"},
{"name": "Departments", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if EmployeeName is equal to.
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Text","argLabel":"arg1","children":null,"scope":"current","
part":{"type":"Simple","valueType":"Text","name":"EmployeeName","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"EqualTo"}]}

Context Variables:
[
{"name": "ProjectTitle", "type": "Text"},
{"name": "DeadlineMonth", "type": "Number"},
{"name": "Budget", "type": "Number"},
{"name": "TeamMembers", "type": "List", "options": {"innerType": "Text"}}
]
Query:Check if Budget is not equal to null.
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Variable","valueType":"Double","argLabel":"arg1","children":null,"scope":"curren
t","part":{"type":"Simple","valueType":"Double","name":"Budget","part":null}},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"NotEqualTo"}]}

Context Variables:
[
{"name": "StudentName", "type": "Text"},
{"name": "Grade", "type": "Number"},
{"name": "AttendanceRate", "type": "Number"},
{"name": "EnrolledCourses", "type": "List", "options": {"innerType": "Text"}}
]
Check if No. Of Courses is less than null.
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":null},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"LessThan"}]}

Context Variables:
[
{"name": "StudentName", "type": "Text"},
{"name": "Grade", "type": "Number"},
{"name": "AttendanceRate", "type": "Number"},
{"name": "EnrolledCourses", "type": "List", "options": {"innerType": "Text"}}
]
Check if 36 is less than null.
{"type":"Expression","valueType":"?","argLabel":"arg1","children":
[{"type":"Function","valueType":"Boolean","argLabel":"arg1","children":
[{"type":"Constant","valueType":"Text","argLabel":"arg1","children":null,"value":"36"},
{"type":"Constant","valueType":"Text","argLabel":"arg2","children":null,"value":null}],"func
tionName":"LessThan"}]}

You might also like