Forum Discussion

JackSparrow's avatar
JackSparrow
Frequent Contributor
8 years ago
Solved

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.  
  • JackSparrow's avatar
    8 years ago

    Yes We can store i just tried it worked :D :D

     

    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