code: function() {
      this.setHelpUrl(Blockly.Msg.LOGIC_TERNARY_HELPURL);
      this.setColour(Blockly.Blocks.logic.HUE);
      this.appendValueInput('IF')
          .setCheck('Boolean')
          .appendField(Blockly.Msg.LOGIC_TERNARY_CONDITION);
      this.appendValueInput('THEN')
          .appendField(Blockly.Msg.LOGIC_TERNARY_IF_TRUE);
      this.appendValueInput('ELSE')
          .appendField(Blockly.Msg.LOGIC_TERNARY_IF_FALSE);
      this.setOutput(true);
      this.setTooltip(Blockly.Msg.LOGIC_TERNARY_TOOLTIP);
      this.prevParentConnection_ = null;
    }
docs: Block for ternary operator.
  @this Blockly.Block