Please see the attachment.
The Letters “A,B…” are either a 1 or a 0. Is the a simple way to write this function without a lot of “If” statements?
The result needs to be a 0 or a 1.
Thanks,
David
How to simplify a group of Logic Blocks? - SOLVED
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to simplify a group of Logic Blocks? - SOLVED
Last edited by DR White on Fri May 22, 2020 1:45 pm, edited 1 time in total.
Re: How to simplify a group of Logic Blocks?
Well, if I understand the problem,
you could go this way:
I've replaced 0 and 1 with false and true,
much better for boolean operations.
Hope this give you some ideas...
Thierry
you could go this way:
I've replaced 0 and 1 with false and true,
much better for boolean operations.
Code: Select all
local A, B, C, D, E, F, G, H
put true into A
put false into B
put false into C
put false into D
put true into E
put true into F
put false into G
put false into H
put (A or B) and ( C or D) and ( E and F) and ( G or H)
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: How to simplify a group of Logic Blocks?
Thierry,
That works BEAUTIFULLY!
THE LC FORUM IS THE BEST,
DAVID
That works BEAUTIFULLY!

THE LC FORUM IS THE BEST,
DAVID