I made a Disptach script to update variable values at a datacard.
Before the value can be updated, it should compared with the actual value at the datacard.
I use a Jump function in my script to do that. But unfortunately it don't work.
This is the Jump rule:
So, at the SFW_Supported_From_CIP402_version variabele I filled the desired value at the begin of the script. If the DATACARD_SFW_Supported_From_CIP402_version is not equal to that value, the value must be changed. If the value is the same, then the script jumps to the end, and nothing will be changed.
I have set the DATACARD_SFW_Supported_From_CIP402_version variable as following:
I expect that the script looks to the SFW_Supported_From_CIP402_version variable at my datacard, to compare it. But it doesn't.
Can anyone tell me how I can compare the set value in the begin of the script, and the actual value of my datacard?
Thanks.
If you have not already figured this out, here is somethings to look at.
Some times I find that it is helpful to build in some verifiable checks to make sure the data you are getting is what you were expecting to get.
In my example I set two variables one to a static test value and the other to the datacard value.
When I did this my dispatch was always jumping to Different Value and I had no value in the %MaterialActual% variable.
That was because I initially left the Configuration field of the MaterialActual variable empty.
Once I added @ to it the jump started working correctly.
For the part above I got:
And for the Second part with no material applied I got:
As a side note, if you only want to change the value if it is not the same you should test for an equal condition and jump over the step to change the value. If you jump if not equal you have to add extra steps to handle the situation when it is equal.
The six line dispatch above could be 3
Edit: Found a part that had a different material set instead of being blank.