» Logic
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Logic

Russian | Italian | Spanish | French

Separate Logic from Content

To program interaction logic, sequences or any other more complex tasks, you should NOT start to weave the logic part deep into your patches but rather have a central command station where you handle all the logical states in an abstract way and send them as needed to other places in your patch.

Basic logic programming

Related nodes

...

Note, if you see too many of these nodes in your patch and the logic gets more and more confusing it's time to switch to State Machine.

Conditions

Wondering how to control data flow in manner of if-else statements? See Conditions.

State Machine

Related nodes

Automata

Use Automata (Animation) for complex logical structures. Automata allows you to distill complex logic into a textual description. See it's extensive helppatch.

Qfsm graphical tool is good for drawing State Machines, it allows you to export state machine statements for the Automata (Animation).

Automata UI

There is also a much more convenient Automata UI contributed by u7angel which enables you to design your program logic with states and transitions as well as giving them a duration within a visual editor.

Sequence based logic

Use Timeliner (Animation) for more sequence based logic. It has an Automata track to jump in the timeline. How to use Timeliner.



This is the landing page of the category Logic

anonymous user login

Shoutbox

~18h ago

joreg: @eglod: if not, we're doing something wrong... but did you check any of the other timeline options? animation

~19h ago

andresc4: Sometimes people finalize a project and can donate a good amount that month, but nobody knows what will happen on the next one :D

~19h ago

andresc4: @vux as @eno say, I think a 1 time payment of any given value its a good option also

~20h ago

ggml: where id the vl search algorythm implementation discussion?

~20h ago

eglod: @ catweasel, o.k. may be, I have to learn vl. Thank You catweasel! Is this possible with 84 years, what think You?

~22h ago

catweasel: I guess part of the issue, is payment is $ which means transaction fees on every payement will add up!

~1d ago

u7angel: @eno, it is a hassle for us too but its worth it i think.

~1d ago

eno: @vux @u7angel, of course, but an annual fee would be much more convenient for the accounting.

~1d ago

u7angel: @eno, the idea is to generate a steady income to motivate continious development.