9a4eb15341bd5c02a0aa3c39c6d0888a08c88dbe
[Plinn.git] / skins / control / setAndGetSessionVar.py
1 ##parameters=key, value, allowFalse = 1
2 sd = context.session_data_manager.getSessionData(create = 1)
3 if allowFalse :
4 sd[key] = value
5 return value
6 else :
7 if value :
8 sd[key] = value
9 return sd.get(key, None)