NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Basic Expression IF assignment statement

Solved!
Go to solution

Hello

 

New to sequence files, and I'm looking for some help with a basic expression.  

  if (myBool == true)

            profileX = profileY

 

I have a bool variable FileGlobals.myBool. so then is this statement correct?? FileGlobals.ProfileLimits = Locals.NewProfile, FileGlobals.myBool. == True

 

I think it says if (FileGlobals.myBool. == True)

                             FileGlobals.ProfileLimits = Locals.NewProfile

 

Thanks

 

0 Kudos
Message 1 of 3
(819 Views)

@Zman303 wrote:

Hello

 

New to sequence files, and I'm looking for some help with a basic expression.  

  if (myBool == true)

            profileX = profileY

 

I have a bool variable FileGlobals.myBool. so then is this statement correct?? FileGlobals.ProfileLimits = Locals.NewProfile, FileGlobals.myBool. == True

 

I think it says if (FileGlobals.myBool. == True)

                             FileGlobals.ProfileLimits = Locals.NewProfile

 

Thanks

 


I am not entirely sure to understand your question right...

 

If you want to assign FileGlobals.ProfileLimits the value of Locals.NewProfile if FileGlobals.nyBool is true, the lower expression of your original question is suitable

 

If this is not what you have been asking for, please re-phrase your question.

 

Just a hint: you can really conveniently use breakpoints/ singlestepping and variable window in the sequence editor to investigate things like that

0 Kudos
Message 2 of 3
(793 Views)
Solution
Accepted by BapiM

FileGlobals.myBool == True ? FileGlobals.ProfileLimits = Locals.NewProfile : ""

0 Kudos
Message 3 of 3
(746 Views)