{
  "synLogic": "int $ret \u003d $api($1, $2);",
  "help": "The ns_set_int_val api sets the specified integer value to a parameter",
  "notes": "",
  "returns": "Returns 0 on success and a negative value on any error.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Parameter Name \u003c/td\u003e \u003ctd\u003e A character pointer that specifies the name of the parameter to which the integer value is to be set. The parameter name should be a string of characters. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Value \u003c/td\u003e \u003ctd\u003e An integer value that needs to be set for the specified parameter. The function sets this value to the parameter with the given name. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Parameter Name",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter parameter name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647
      },
      "quotes": true
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      },
      "quotes": true
    }
  ],
  "name": "ns_set_int_val", 
  "syntax": "int ns_set_int_val (char * parameter_name, int value)",
  "javaSyntax": "int ns_set_int_val (String parameter_name, int value)",
  "jsSyntax": "ns_set_int_val(parameter_name: string, value : number)",
  "cEx": "flow\n{\n  int val = 0;\n  val =  ns_set_int_val(\"param_name\", 10);\n  int retVal = ns_get_int_val(\"param_name\");\n  printf(\"Output will be = %d\", retVal);\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n	int val = 0;\n	val =  nsApi.ns_set_int_val(\"param_name\", 10);\n	int retVal = nsApi.ns_get_int_val(\"param_name\");\n	System.out.println(\"The Output will be: \" + retVal);\n  }\n}",
  "jsEx": "  let val = 0;\n  val =  nsApi.ns_set_int_val(\"param_name\", 10);\n  let retVal = nsApi.ns_get_int_val(\"param_name\");\n  console.log(\"The Output will be: \" , retVal);\n",
  "insertStrC": "ns_set_int_val (char * parameter_name, int value);",
  "insertStrJava": "ns_set_int_val (String parameter_name, int value);",
  "insertStrJs": "ns_set_int_val(parameter_name: string, value : number);",
  "description": "The ns_set_int_val api sets the specified integer value to a parameter"
}
