5 |
##bind script=script |
##bind script=script |
6 |
##bind subpath=traverse_subpath |
##bind subpath=traverse_subpath |
7 |
##parameters=action,member |
##parameters=action,member |
8 |
##title= |
##title=Test for action eligability based on a few parameters |
9 |
## |
## |
10 |
|
|
11 |
true=1 |
true=1 |
12 |
false=0 |
false=0 |
13 |
|
|
14 |
if action.getCountry() != []: |
if action.getCountry(): |
15 |
if member.getProperty('country') not in action.getCountry(): |
if member.hasProperty('country'): |
16 |
return false |
if member.getProperty('country') not in action.getCountry(): |
17 |
|
return false |
18 |
|
|
19 |
if action.getUsState() != []: |
if action.getUsState(): |
20 |
if member.getProperty('us_state') not in action.getUsState(): |
if member.hasProperty('us_state'): |
21 |
return false |
if member.getProperty('us_state') not in action.getUsState(): |
22 |
|
return false |
23 |
|
|
24 |
return true |
return true |
25 |
|
|