function check (const p: unit) : int is begin var result : int := 0; if amount = 100tz then result := 42 else result := 0 end with result