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
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
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