|
- <script type="text/javascript">
- RED.nodes.registerType('FilterUltimate',{
- category: 'boolean logic ultimate',
- color: '#ff8080',
- defaults: {
- name: {
- value: "Filter"
- }
- },
- inputs:1,
- outputs:2,
- outputLabels: function(i) {
- var ret="";
- switch (i) {
- case 0:
- return "True";
- break;
- case 1:
- return "False";
- break;
- default:
- break;
- }
- },
- icon: "switch.png",
- label:
- function() {
- return this.name||"Filter";
- },
- paletteLabel: function() {
- return "FilterUltimate";
- }
- });
- </script>
-
- <script type="text/x-red" data-template-name="FilterUltimate">
- <div class="form-row">
- <label for="node-input-name"><i class="icon-tag"></i> Name (topic)</label>
- <input type="text" id="node-input-name" placeholder="Name">
- </div>
- </script>
-
- <script type="text/x-red" data-help-name="FilterUltimate">
- <p>The node emits on output "true", only input payloads that are true<br/>
- and on the output "false", only input payload that are false.
- </p>
- </script>
|