From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Scenarios of copying variables

This post is an extention of this this thread.

 

In this case scenario is I'd like to copy the container B into container A but for the A cointeners' subproperties do:

 

  1. if A subproperty exists, but the subproperty exists in B container and their values are equal - do nothing
  2. if A subproperty exists, but the subproperty exists in B container and their values are not equal - retain value held by A (destination)
  3. if A subproperty doesn't exist but the subproperty exist in B container - create subproperty from container B in container A along with B's subproperty value.

Is it possible wthout iterating subproperties over in the subsequence?

 

Capture123.PNG

 

0 Kudos
Message 1 of 2
(4,148 Views)

Unfortunately I don't know of a way to do it other than iterating.  Do you need to recurse through the hierarchy?

 

Here is your sequence modified to iterate through and copy them over.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(4,126 Views)