-
In the Object Filter section, select your type and click Create Filter.
-
Click Create/Edit Expression to create the EKL script.
- Enter your script.
- Click OK.
Script Example
The script below returns True
for red objects and for those whose parent has at least two children. It returns False
in all other cases.
ReturnBool = False
let Parent(BodyFeature)
set Parent = ThisObject.Owner
let ParentChildList(List)
set ParentChildList = Parent.Children
if(ThisObject.Color == "red")
ReturnBool = True
else if(ParentChildList.Size() >= 2)
ReturnBool = True
else
ReturnBool = False