# Logical variables

**URL:** <https://www.ruby-forum.com/t/logical-variables/239783>\
**Category:** NGINX\
**Created:** [March 14, 2014, 6:02am UTC](https://www.ruby-forum.com/t/logical-variables/239783 "2014-03-14T06:02:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [March 14, 2014, 6:02am UTC](https://www.ruby-forum.com/t/logical-variables/239783/1 "2014-03-14T06:02:01Z")

</div>

If I pass a variable, set to true via a fastcgi\_param, does it arrive as  
a logical or string value?

If it’s a string, is there a way to pass as a logical true/false?

Cheers,

Steve

---

<div class="post-metadata">

**Author:** ![steveybaby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Post date:** [March 14, 2014, 9:19am UTC](https://www.ruby-forum.com/t/logical-variables/239783/2 "2014-03-14T09:19:18Z")

</div>

On Fri, Mar 14, 2014 at 06:00:48PM +1300, Steve H. wrote:

Hi there,

> If I pass a variable, set to true via a fastcgi\_param, does it arrive as  
> a logical or string value?

That’s a fastcgi thing.

[http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S5.2](http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S5.2)

It arrives as some bytes.

How you interpret it is up to you.

> If it’s a string, is there a way to pass as a logical true/false?

What bytes do you want to represent logical true/false?

Send those bytes, and interpret them in your application.

Cheers,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
