Syntax Error with While

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ciryaj
    Member
    • Mar 2018
    • 48

    #1

    Syntax Error with While

    Syntax error. Attribute name "Completed") { while($i contains not allowed characters.....
    Code is below:
    Code:
    $i=0;
    if(status=="Completed")
    {
       while($i<array\length(cellphoneIds))
       {
        record\update('Cellphone',
        array\at(cellphonIds, $i),
        'assignment', assignedEmployee);
       }
     $i=$i+1;
    }
  • victor
    Active Community Member
    • Aug 2022
    • 1239

    #2
    ciryaj,

    Please describe in more detail what you are trying to do. At first glance there are two problems:

    1. There is a difference between cellphoneIds and cellphonIds -- the letter "e" is missing.
    2. "$i = $i + 1" should be inside a while.

    Comment

    Working...