ligo/test/contracts/condition.ligo

9 lines
156 B
Plaintext
Raw Normal View History

2019-05-13 00:56:22 +04:00
function main (const i : int) : int is
var result : int := 23 ;
begin
if i = 2 then
result := 42
else
result := 0
end with result