...
Source Code
Code Block | ||
---|---|---|
| ||
letfunction outexecute() ={ true; for (let i = 1; i < inPorts.length; i ++= 1) { if (!inPorts[i].value) { out =return false[true]; break;} } } return [!outfalse]; } |
...
Truth Table
In 1 | In 2 | Out |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
...
...
Code Block | ||
---|---|---|
| ||
letfunction outexecute() ={ true; for (let i = 1; i < inPorts.length; i ++= 1) { if (!inPorts[i].value) { out =return false[true]; break;} } } return [!outfalse]; } |
...
In 1 | In 2 | Out |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
...