summaryrefslogtreecommitdiff
path: root/grc/blocks/variable.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'grc/blocks/variable.block.yml')
-rw-r--r--grc/blocks/variable.block.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/grc/blocks/variable.block.yml b/grc/blocks/variable.block.yml
new file mode 100644
index 0000000000..fa62dabe87
--- /dev/null
+++ b/grc/blocks/variable.block.yml
@@ -0,0 +1,19 @@
+id: variable
+label: Variable
+
+parameters:
+- id: value
+ label: Value
+ dtype: raw
+ default: '0'
+value: ${ value }
+
+templates:
+ var_make: self.${id} = ${id} = ${value}
+ callbacks:
+ - self.set_${id}(${value})
+
+documentation: |-
+ This block maps a value to a unique variable. This variable block has no graphical representation.
+
+file_format: 1