Asked — Edited
Resolved Resolved by WBS00001!

Error: Missing Binary Operator: True [?] False

I have been working for a little while now, but cant seem to get away from this error:


Start
4: $happyset = 1
5: $excitedset = 1
6: $annoyedset = 1
7: $smugset = 1
8: $sickset = 1
9: $tiredset = 1
10: $sadset = 1
11: $upsetset = 1
12: $angryset = 1
13: $confusedset = 1
16: $sleep=true
19: :Loop
21: $happy = false
22: $excited = false
23: $annoyed = false
24: $smug = false
25: $sick = false
26: $tired = false
27: $sad = false
28: $upset = false
29: $angry = false
30: $confused = false
32: if ($happyset = 1)($happy = true)
> Error on line 32: Missing binary operator: 
True [?] False
Done (00:00:00.1020057)

Any ideas where it comes from? How could i fix it? If the EZ-Script is nessesary, I'll post it, but its from a project that i don't want to release just yet. This is the main dispatcher script causing the trouble.


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#1  

You are missing the AND or OR: if ($happyset = 1) and ($happy = true) if ($happyset = 1) or ($happy = true)

#2  

Great! Works like a charm! Realized I needed a sleep. My script is demanding without it! You've come a long way quick!

Thanks.

#3  

You're very welcome. Good luck with your project.