Mentions légales du service

Skip to content

Language: Constant keyword

Created by: stephanemagnenat

Currently constants can be defined the Studio and are available on all nodes. However, it is not possible to define constant expressions such as:

constant MOTOR  = 300
constant CHANGE = 25  # percent
constant SLOWER = MOTOR - (MOTOR * CHANGE)/100
constant FASTER = MOTOR + (MOTOR * CHANGE)/100

It would be nice to add this possibility. This suggestion was contributed by Prof. M. Ben-Ari.