S
S
Sergey Pugovkin2020-09-04 15:24:35
Nginx
Sergey Pugovkin, 2020-09-04 15:24:35

What variable values ​​in nginx give false?

In nginx, the following construction is possible:

if ($my_var) {
    ... 
}

What values ​​will give false?
""
"0"
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2020-09-04
@Driver86

https://nginx.org/ru/docs/http/ngx_http_rewrite_mo...

false values ​​of a variable are an empty string or "0";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question