Hi All!
I am playing around with ver.5. I can see there is difference how to use "calculations."
To create a string I have to create this in the box "calculations" and then choose a string I found of.
How do I use Constant in the calulationbox. I can´t find anything concerning this in the help meny (Is constant is equal to a fixed value?)
BOOL = true and false, it is equal to 1 and 0 but how am I using these.
Can anybody help me, please.
Best regard "the AMATEUR".
Jorgen
Ver. 5 Help need!
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Ver. 5 Help need!
Yes a constant like in maths is a fixed value.jgu1 wrote: How do I use Constant in the calulationbox. I can´t find anything concerning this in the help meny (Is constant is equal to a fixed value?)
So when you add a new constant, you need to name the constant and just enter the value you want the constant.
So if constant called const1 is assigned with a value of 5 and you have a variable called var1 which currently has a value of 10. Then if you use var1 = var1 + const1
Then var1 will have a value of 10 + 5 = 15
You can use Bool if just monitoring a single input or controlling a single output.jgu1 wrote: BOOL = true and false, it is equal to 1 and 0 but how am I using these.
That should save some usage of bytes. Bool can only ever have a value of 0 or 1.
So if Bool = 1 and you add 1 to it Bool will then = 0
Martin
Martin
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Ver. 5 Help need!
Hi Martin!
It gav sense. Meanwhile I have playing around with this and have become wiser. Your explanation confirmed my experiments with these variables in Ver.5 this evening.
But it is a litle difference from ver.4 It's probably a matter of habit
Thank´s Martin
Have a nice evening.
Best regard
Jorgen.
It gav sense. Meanwhile I have playing around with this and have become wiser. Your explanation confirmed my experiments with these variables in Ver.5 this evening.
But it is a litle difference from ver.4 It's probably a matter of habit
Thank´s Martin
Have a nice evening.
Best regard
Jorgen.