Re: [Fish-users] Setting true/false to a variable

2014-11-12 Thread Elias Assmann
On 11/11/2014 11:45 PM, Marcin Zajączkowski wrote: > Hello again, > > Another question related to fish scripting. How can I set a value to a > variable to be able to use it in `if`? > > if test $myBool >... > end This should work (at least in my slightly outdated version of fish)! What it tes

Re: [Fish-users] Setting true/false to a variable

2014-11-11 Thread Greg Reagle
On Tue, Nov 11, 2014, at 05:45 PM, Marcin Zajączkowski wrote: > Another question related to fish scripting. How can I set a value to a > variable to be able to use it in `if`? > > if test $myBool > ... > end The shell's only notion of true and false (this is true for all unix shells that I know

[Fish-users] Setting true/false to a variable

2014-11-11 Thread Marcin Zajączkowski
Hello again, Another question related to fish scripting. How can I set a value to a variable to be able to use it in `if`? if test $myBool ... end I tried with 0/1 and true/false, but with no luck. As a workaround I can set/unset that variable and check with `if set -q myBool` or compare value