dimanche 19 novembre 2017

JAVA if else statement show undefined

Just learned to programme. java,jquery. Please help me check what is wrong with this.

Thank you.

comment got a string of "Greater" but will show "Undefined". comment2 and comment3


            if (math >= greater) {

                finalcomment = comment;
            }
            else if ((math >= between1) && (math <= between2)) {

                finalcomment = comment2;
            }
            else if (math <= less) {

               finalcomment = comment3;
        }
       else {
            validationMsgs("ERROR ERROR ERROR, Information", "OK");
            }

Aucun commentaire:

Enregistrer un commentaire