0

field not found - Error

Hi!

where is the error?

 

let a := Testo
if a = null then
    let b := "zero"
    else
        let b := "molti"
        end;
    alert(b)

Field not found in line 7

 

Thanks!

2 replies

null
    • Fred
    • 2 yrs ago
    • Reported - view

    You have to put the alert inside the then and else parts.

    let a := Testo
    if a = null then
        let b := "zero";
        alert(b)
    else
        let b := "molti";
        alert(b)
    end;
    
    

    Or you can do:

    let a := Testo
    alert(if a = null then
         "zero"
     else
         "molti"
     end)
    
    • Web_Namer
    • 2 yrs ago
    • Reported - view

    Thanks a lot Fred

Content aside

  • Status Answered
  • 2 yrs agoLast active
  • 2Replies
  • 57Views
  • 2 Following