• Resolved glgrazi

    (@glgrazi)


    I could not have the filed displayng what I want.
    What is wrong with this”

    (function(){

    if(fieldname4 < 2) return “Inserisci tutti i dati”;

    if(fieldname4 = 2) return “Ablazione o Resezione”;

    })();`

    I could not have the appropriate text being displayed in the field

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @glgrazi

    In javascript, the equality operator is represented by the double symbol == because = is used for assignment. Please, note your equation does not cover the case 2<fieldname4

    The equation would be similar to:

    (function(){
    if(fieldname4 < 2) return "Inserisci tutti i dati";
    if(fieldname4 == 2) return "Ablazione o Resezione";
    return "The third case here";
    })();

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘What’s wrong?’ is closed to new replies.