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
    • 1 yr 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
    • 1 yr ago
    • Reported - view

    Thanks a lot Fred

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 2Replies
  • 40Views
  • 2 Following