envole/creole/eos-getBool.py
2023-11-10 11:33:16 +01:00

12 lines
188 B
Python

#!/usr/bin/python
def getBool(var):
try:
if var == "oui":
return 1
else:
return 0
except:
return "error fonction getBool"