Create account / Log in

How to sum together many Global Properties

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

How to sum together many Global Properties

Postby skizelo » September 26th, 2017, 12:28 pm

I want to automate upkeep and so I need something to be able to set one Global Property by summing a number of different Global Properties. I don't know how to build an expression that grabs a bunch of numerical properties and then does maths to them (including multiplying something by two before adding it to the sum).
At the moment I'm doing this with multiple "Set Global Property" actions, which doesn't seem the most elegant way to go about it.
skizelo
 
Posts: 17
Joined: July 6th, 2017, 11:37 am

Re: How to sum together many Global Properties

Postby skizelo » September 27th, 2017, 9:12 am

I put it together. The answer, of course, was to use a lot of brackets and the GetProperty command. eg {(((GetProperty("Property 1"))*2)+((GetProperty(""Property 2"))}. though tracking all those brackets makes my head swim a bit.
skizelo
 
Posts: 17
Joined: July 6th, 2017, 11:37 am

Re: How to sum together many Global Properties

Postby JoelCFC25 » September 27th, 2017, 4:25 pm

Calculated Properties seem easier to use, though the documentation for them is only in the Editor help and not on this site's wiki.
JoelCFC25
 
Posts: 711
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN


Return to Module Design

Who is online

Users browsing this forum: Google [Bot] and 0 guests