return
| Scope | |
|---|---|
| global | ❌ |
action | ❌ |
function | ✅ |
policy/recall | ❌ |
seal/open | ✅ |
finish | ❌ |
finish function | ❌ |
function foo() int {
let x = unwrap query FooCount[deviceID: myId]
return x.count
}
return evaluates an expression and returns the value from the
function. The value returned must have the type specified in the
function signature.