setVariable

This tag sets a variable that can be used by other Hackvertor tags.

Created by: hackvertor
Installed 1 times

Category: Variables

Created on: Monday, October 7, 2024 at 8:49:28 PM

Updated on: Friday, December 20, 2024 at 8:08:04 PM

This is a built in tag
Tag arguments
[
   {
      "type": "string",
      "help": "This is the name of the argument",
      "defaultValue": "foo"
   }
]
Code
class setVariable {
  encode(input, name) {
    hv.variables[name] = input
  }
}