I need an explanation of how the complex expression braces behave. I'm trying to find an equivalent line using complex expression braces to the following line:
Let>started=%date%, %time%
...results in the watch as: STARTED=5/6/2008, 3:30:30
The following lines do not work:
Line A
Let>started={%date%, %time%}
...results in error: , not appropriate
Line B
Let>started={"%date%, %time%"}
...results in error: 5 not appropriate
Line C
Let>started={%date%", "%time%}
...results in the watch as: STARTED=5/6/2008", "3:30:30
After seeing the following behavior, I expected Line A to behave the same way:
Let>started=%date%", "%time%
...results in the watch as: STARTED=5/6/2008", "3:30:30 which appears to be identical to Line Cs result.
Thanks
Complex Expression braces, whats going on inside?
Moderators: Dorian (MJT support), JRL
Hi ichiban,
Please kindly resond your post http://www.mjtnet.com/forum/viewtopic.p ... highlight=
The author/developer and users alike are eager to assist your technical issue, though not necessarily with an express guarantee of success. But you're rest assured we'll try very hard to help you.
Thanks for your kind understanding.
Please kindly resond your post http://www.mjtnet.com/forum/viewtopic.p ... highlight=
The author/developer and users alike are eager to assist your technical issue, though not necessarily with an express guarantee of success. But you're rest assured we'll try very hard to help you.
Thanks for your kind understanding.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Welcome back ichibon.
Generally, the braces "{....}" are used with complex IF expressions. They can be used in other situations, but I think that usage with IF is probably most common. They do work as you would think to group expressions and prioritize the sequence of calculatons.
Another variation of armsys' solution is this:
Generally, the braces "{....}" are used with complex IF expressions. They can be used in other situations, but I think that usage with IF is probably most common. They do work as you would think to group expressions and prioritize the sequence of calculatons.
Another variation of armsys' solution is this:
Code: Select all
GetDate>Date
GetTime>Time
Let>Started=%Date%, %Time%
MessageModal>The value of started is %Started%
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!