using Python script, how can we default the Propertycontrol2 values when PropertyControl1 values are flipped?

Hi All,

using Python script, how can we default the Propertycontrol2 values when PropertyControl1 values are flipped?? 

Tried with below query, but didnt work. please suggest.  

If (Document.Properties['propertycontrol1'] ='Week'):
Document.Properties['propertycontrol2'] = 'Current Week'
else :
Document.Properties['propertycontrol2'] = 'Current Month'

Login