2021-04-14 03:35:10 +03:00
|
|
|
import "println.aqua"
|
2022-07-04 17:11:09 +03:00
|
|
|
import "@fluencelabs/aqua-lib/builtin.aqua"
|
2021-04-14 03:35:10 +03:00
|
|
|
|
2022-02-03 12:44:11 +03:00
|
|
|
service OpR("op"):
|
|
|
|
identity(s: string) -> string
|
|
|
|
|
2021-04-14 03:35:10 +03:00
|
|
|
func ifElseCall(condition: bool):
|
|
|
|
if condition:
|
|
|
|
Println.print("it is true")
|
|
|
|
else:
|
2021-04-14 17:32:01 +03:00
|
|
|
Println.print("it is false")
|
2021-04-15 12:33:58 +03:00
|
|
|
|
|
|
|
func ifElseNumCall(condition: u32):
|
|
|
|
if condition == 1:
|
|
|
|
Println.print("it is 1")
|
|
|
|
else:
|
|
|
|
Println.print("it is not 1")
|
2022-02-03 12:44:11 +03:00
|
|
|
|
|
|
|
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!
|
2022-07-04 17:11:09 +03:00
|
|
|
|
|
|
|
func bugLNG69(other_node: PeerId) -> bool:
|
|
|
|
on other_node:
|
|
|
|
Op.noop()
|
|
|
|
|
|
|
|
if false:
|
|
|
|
Op.noop()
|
|
|
|
|
|
|
|
<- true
|