| Author |
Message |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Aug 8, 2019 8:29 PM Post subject: object expression evaluator |
|
Jarek
I have made a few modifications to your snippet to create a new folder or record to an existing folder. I am attempting to get the date and time of session inserted into the expression evaluator. I can set up a snippet that just inserts the date into the evaluator and it works fine. But I can not figure out how to insert that into the evaluator as it is set up in the snippet.
I am not at all familiar with the workings of the object expressions.
Here is the epression as in exists.
"Session/" + (In2 == null ? In1 : In2) +"/session.edf"
I have connected In3 to Date and time from OSinfo
I have tried variation using In3 "Session/" + (In2 == null ? In1 : In2) +(In3)"/session.edf"
Every attempt ends with an error or "In3" being inserted as text
Thanks
George |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 8, 2019 8:48 PM Post subject: |
|
I think you forgot to add "+" after your In3 variable.
The snippet on the link below does something similar (but only one variable so it uses In1):
http://proatech.com/design/osinfo_time.bpd |
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Aug 8, 2019 9:11 PM Post subject: |
|
Thanks.
That was a silly oversight
Works fine now |
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Aug 8, 2019 10:31 PM Post subject: |
|
This does exactly what it should. One folder is created for each session.
I would like to have it create a session folder and append the date just prior to the .edf extension. Instead of session.edf I would like it to read date.edf
Thanks again
George |
|
 |
GMartin
Joined: Feb 5, 2010 Posts: 308
|
Posted: Aug 8, 2019 11:18 PM Post subject: |
|
I went back to what I know best. I split the expression onto pieces and used text transforms with text plu variable and got the results I wanted.
Is there info somewhere about the uses of theobject expresssion evaluator. I know it functions a bit differently that the other evaluators. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Aug 8, 2019 11:36 PM Post subject: |
|
It is most commonly used for more complicated text operations.
But it can do also very advanced stuff, because Object type has a wider scope (images etc.) than just text. |
|