diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-04 14:44:18 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-04 14:44:18 +0200 |
commit | 3bf585ba04e7ff4a95f739e58503da7af3714bc7 (patch) | |
tree | 4491e9835a428d94bcb643e519f7e4ce0f47fc7c /cmake/FindIconv.cmake | |
parent | 1aefb0a54606071e6aeca89f0cfbfc55a2f356dc (diff) | |
download | weechat-3bf585ba04e7ff4a95f739e58503da7af3714bc7.zip |
core: evaluate left/right part of comparison after split on the comparison operator in ${if:xxx} (closes #1627)
To force evaluation of the expression before doing the comparison (less safe),
the "${eval_cond:xxx}" can be used.
With the old behavior we had:
>> ${if:a==b}
== [0]
>> ${if:${raw:a==b}}
== [0]
>> ${if:${eval_cond:${raw:a==b}}}
== [0]
And with the new behavior, we have:
>> ${if:a==b}
== [0]
>> ${if:${raw:a==b}}
== [1]
>> ${if:${eval_cond:${raw:a==b}}}
== [0]
Diffstat (limited to 'cmake/FindIconv.cmake')
0 files changed, 0 insertions, 0 deletions