envole/creole/eos-getBool.py

12 lines
188 B
Python
Raw Normal View History

2023-11-10 11:33:16 +01:00
#!/usr/bin/python
def getBool(var):
try:
if var == "oui":
return 1
else:
return 0
except:
return "error fonction getBool"