Page 1 of 1

arithmetic combinator - constant number ... dinamically?

Posted: Wed Oct 08, 2025 8:55 pm
by Harb42
Hi everyone!

Is there any way to set the constant value on the right side dynamically? I would like to set the multiplier based on conditions, but can't. Having a signal with a given value does not help this situation.
10-08-2025, 22-54-20.png
10-08-2025, 22-54-20.png (602.76 KiB) Viewed 651 times

Re: arithmetic combinator - constant number ... dinamically?

Posted: Wed Oct 08, 2025 10:07 pm
by eugenekay
Harb42 wrote: Wed Oct 08, 2025 8:55 pmHaving a signal with a given value does not help this situation.
So do you want it to be Dynamic… or not? :lol:

Use a Green wire to provide the Left-side values; and a Red wire to provide the Right-side signal.

Good Luck!

Re: arithmetic combinator - constant number ... dinamically?

Posted: Thu Oct 09, 2025 3:42 am
by Hurkyl
Arithmetic combinator just does arithmetic.

Decider combinator does decisions.

Use decider combinators to put the multiplier you want on a signal (e.g. maybe the signal "M") based on your conditions, and have the arithmetic combinator use that signal as the multiplier.

Re: arithmetic combinator - constant number ... dinamically?

Posted: Thu Oct 09, 2025 9:31 am
by Harb42
Have you tried your approach in practice? This approach seems to not work. That's my problem. Using a signal with value on the right side does not do the multiplication with that value.

Re: arithmetic combinator - constant number ... dinamically?

Posted: Thu Oct 09, 2025 10:29 am
by Tertius
Harb42 wrote: Thu Oct 09, 2025 9:31 am Have you tried your approach in practice? This approach seems to not work. That's my problem. Using a signal with value on the right side does not do the multiplication with that value.
It's not clear what you mean. We mean this:
10-09-2025, 12-29-37.png
10-09-2025, 12-29-37.png (60.83 KiB) Viewed 526 times
Compute your factor as virtual signal (here: N) with whatever circuit contraption you come up with, then use that signal in the arithmetic combinator.

Re: arithmetic combinator - constant number ... dinamically?

Posted: Thu Oct 09, 2025 11:59 am
by robot256
And uncheck the R on the left if you want to avoid the N=25 output signal.

Re: arithmetic combinator - constant number ... dinamically?

Posted: Thu Oct 09, 2025 5:54 pm
by Harb42
Thank you!
Thank you for your help and patience. It seems a grain of sand got into the machine. I retested it based on what you shared and it works.