components/blockly-src/blocks/math.js
function() {
    this.jsonInit({
      "message0": Blockly.Msg.MATH_CONSTRAIN_TITLE,
      "args0": [
        {
          "type": "input_value",
          "name": "VALUE",
          "check": "Number"
        },
        {
          "type": "input_value",
          "name": "LOW",
          "check": "Number"
        },
        {
          "type": "input_value",
          "name": "HIGH",
          "check": "Number"
        }
      ],
      "inputsInline": true,
      "output": "Number",
      "colour": Blockly.Blocks.math.HUE,
      "tooltip": Blockly.Msg.MATH_CONSTRAIN_TOOLTIP,
      "helpUrl": Blockly.Msg.MATH_CONSTRAIN_HELPURL
    });
  }
function() {
    this.jsonInit({
      "message0": Blockly.Msg.MATH_CONSTRAIN_TITLE,
      "args0": [
        {
          "type": "input_value",
          "name": "VALUE",
          "check": "Number"
        },
        {
          "type": "input_value",
          "name": "LOW",
          "check": "Number"
        },
        {
          "type": "input_value",
          "name": "HIGH",
          "check": "Number"
        }
      ],
      "inputsInline": true,
      "output": "Number",
      "colour": Blockly.Blocks.math.HUE,
      "tooltip": Blockly.Msg.MATH_CONSTRAIN_TOOLTIP,
      "helpUrl": Blockly.Msg.MATH_CONSTRAIN_HELPURL
    });
  }
function ( ) { this . jsonInit ( { "message0" : Blockly . Msg . MATH_CONSTRAIN_TITLE , "args0" : [ { "type" : "input_value" , "name" : "VALUE" , "check" : "Number" } , { "type" : "input_value" , "name" : "LOW" , "check" : "Number" } , { "type" : "input_value" , "name" : "HIGH" , "check" : "Number" } ] , "inputsInline" : true , "output" : "Number" , "colour" : Blockly . Blocks . math . HUE , "tooltip" : Blockly . Msg . MATH_CONSTRAIN_TOOLTIP , "helpUrl" : Blockly . Msg . MATH_CONSTRAIN_HELPURL } ) ; }
Block for constraining a number between two limits.
@this Blockly.Block
Block for constraining a number between two limits .