Ask a Question

Can we Store more than 3 values in Project Variables

SOLVED
JackSparrow
Frequent Contributor

Can we Store more than 3 values in Project Variables

Hi ,

 

Can i store 3 or more values in the Project variables and use them by iteration ,can anyone please help me with an example in python.

 

1 REPLY 1
JackSparrow
Frequent Contributor

Yes We can store i just tried it worked 😄 😄

 

def tst():
 
   val = ProjectSuite.Variables.C_Location
   val1 = ProjectSuite.Variables.D_Location
   val = val.split(",")
   val1 = val1.split(",")
   for i in range(0,4):
      Log.Message(str(val1[i]))  
      Log.Message(str(val[i]))

O/P :
North1	
North	
Southn1	
South	
east1	
East	        
West1	
West	
cancel
Showing results for 
Search instead for 
Did you mean: