mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-04-01 06:31:04 +00:00
27 lines
560 B
Plaintext
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!
|