How to do: var2 = var2 + var1 ?

Q&A about the latest versions
Post Reply
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi to all,

How can I add the value of var1 into var2 in the logic bloc under the action "images loaded" or "images ready", I don't know how it is written in english ?

Any idea ?

Thanks in advance
,
Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Please see the attached project.
There are three variables, total, var1 and var2.
On images ready var1 and var2 are added to the total variable.
On open the total will be 10,
var1, = 5 + var2, = 5 = total, = 10.
Regards,
Attachments
project.zip
(12.59 KiB) Downloaded 212 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Thank you Hopki, I give a look as soon as possible...

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi Hopki,

I notice that to resolve my problem, you create a new variable called "total".
Why not ?

Then, I pass the value of "total" into "var2" and the job is done;-)

Thank you,

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
Post Reply