Struct Creation (Expression) — oopsk
Addon: oopsk · Category: Expression · Since: 1.0
Syntax
[a[n]] <([\w ]+)> struct instance [with [the] [initial] values [of]]Description
Creates an instance of a struct based off a template. The template name is case insensitive. Initial field values can be set by adding entries with the format 'fieldname: value'.
Examples
set {a} to a message struct
return a result struct instance
return a result struct instance with the initial values of:
valid: true
error: "No error"
data: {_data::*}