IF

(func (export "testif") (result i32)
    (local $t i32)
    (set_local $t (i32.const 0))
    i32.const 0 
    i32.const 11 
    i32.eq 
    if $i0
      (set_local $t (i32.const 5)) 
    else 
      (set_local $t (i32.const 2))
    end
    get_local $t
  )

Last updated