Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Help with script

Avatar

Avatar
Validate 25
Level 2
mmgiath
Level 2

Likes

6 likes

Total Posts

321 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 2
mmgiath
Level 2

Likes

6 likes

Total Posts

321 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
mmgiath
Level 2

13-03-2013

What wrong with my script( does not executo on click event):

if (form1.Total_Assessment_Sub.Total_Performance.rawValue==0)

{form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="";

}

else if ( form1.Total_Assessment_Sub.Total_Performance.rawValue >=4.5)

{ form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="OUTSTANDING";

}

else

{if (form1.Total_Assessment_Sub.Total_Performance.rawValue >=3.5&&Total_Behaviours.rawValue<4.5)

{form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="EXCEEDS EXPECTATIONS";

}

else

{if (form1.Total_Assessment_Sub.Total_Performance.rawValue >=2.5&&Total_Behaviours.rawValue<3.5)

{form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="MEETS EXPECTATIONS";

}

else

{ if (form1.Total_Assessment_Sub.Total_Performance.rawValue >=1.5&&Total_Behaviours.rawValue<2.5)

{form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="NEEDS IMPROVEMENT";

}

else

{ if (form1.Total_Assessment_Sub.Total_Performance.rawValue<1.5&&Total_Behaviours.rawValue>0)

{ form1.Total_Assessment_Sub.AssessmentValueTotal.rawValue="DOES NOT MEET EXPECTATIONS";

}

                }      

            }

        }

    }  

View Entire Topic

Avatar

Avatar
Validate 1
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct Reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct Reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
past-tense
Level 2

13-03-2013

Hey there,

first thing i see is that  you've got

else { if (...) {}

should be

else if (...) {}