2022-02-03 12:44:11 +03:00

27 lines
560 B
Plaintext

import "println.aqua"
service OpR("op"):
identity(s: string) -> string
func ifElseCall(condition: bool):
if condition:
Println.print("it is true")
else:
Println.print("it is false")
func ifElseNumCall(condition: u32):
if condition == 1:
Println.print("it is 1")
else:
Println.print("it is not 1")
func ifCorrectXorWrap(node: string) -> string:
service_id: *string
on node:
res <- OpR.identity("1234")
if res == "":
service_id <<- "0x"
else:
service_id <<- "1x"
<- service_id!