home Forums # Technical Support One variable act as both input and output Reply To: One variable act as both input and output

#2529

Hi,

thanks for your post.

you can use output variables in the antecedents of a rule. for example, given an input variable x, and two output variables a and b, you can have a rule block that goes:


if x is X then a is A
if a is A then b is B

.

Check these examples with QtFuzzyLite:

https://github.com/fuzzylite/fuzzylite/blob/release/examples/mamdani/SimpleDimmerChained.fll
https://github.com/fuzzylite/fuzzylite/blob/release/examples/mamdani/SimpleDimmerInverse.fll

Cheers.