Default repository for execsql.py
Révision | 07743afaf2d3a3f7d73d3664b0fe9436a8d42e5c (tree) |
---|---|
l'heure | 2016-08-11 04:30:05 |
Auteur | Dreas Nielsen <dnielsen@inte...> |
Commiter | Dreas Nielsen |
Corrected ELSEIF evaluation.
@@ -27,8 +27,8 @@ | ||
27 | 27 | # |
28 | 28 | # =============================================================================== |
29 | 29 | |
30 | -__version__ = "1.8.1.0" | |
31 | -__vdate = "2016-08-09" | |
30 | +__version__ = "1.8.1.1" | |
31 | +__vdate = "2016-08-10" | |
32 | 32 | |
33 | 33 | import os |
34 | 34 | import os.path |
@@ -5894,8 +5894,10 @@ | ||
5894 | 5894 | |
5895 | 5895 | ##### BLOCK ELSEIF |
5896 | 5896 | def x_if_elseif(**kwargs): |
5897 | - if working_script.all_true() or working_script.only_current_false(): | |
5897 | + if working_script.only_current_false(): | |
5898 | 5898 | working_script.replace_if_level(xcmd_test(kwargs['condtest'])) |
5899 | + else: | |
5900 | + working_script.replace_if_level(False) | |
5899 | 5901 | return None |
5900 | 5902 | |
5901 | 5903 | metacommands.append(MetaCommand(r'^\s*ELSEIF\s*\(\s*(?P<condtest>.+)\s*\)\s*$', x_if_elseif, run_when_false=True)) |