|
- <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>
- <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a>
- and
- <a href="http://eepurl.com/gJm095" target="_blank">Subscribe to my channel</a> for news about my nodes.
- </p>
-
- <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>
- <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a>
-
- </script>
|