
rz90208

Can someone tell me why I am getting this error?
I must be going code blind or I found a bug.
ARC version 2020.05.18.00
Error on line 4: Missing ) in ExpressionCode:
$HumanSaid = "birds can fly"
$Sentence = $HumanSaid
$xCount = 0
repeatwhile(contains($Sentence, " "))
$xStrLength = Length($Sentence)
$xIndex1 = IndexOf($Sentence, " ")
$Sentence = SubString($Sentence,$xIndex1 + 1,($xStrLength - ($xIndex1 + 1)))
$xCount = $xCount + 1
endrepeatwhile
$xCount = $xCount + 1
$WordCount = $xCount
Code:
You should move away from EZ-Script to Javascript or Python.
Javascript version:
Code:
Python version:
Code:
.
Have to start from scratch as most of my scripts just vanished when I installed ARC and I can't find any backups and I know I have made lots.
by the way what does ASFAIK mean?
ASFAIK = PTP's version of AFAIK (All rights reserved)
Thank you DJ