---
title: "gsql_is_true()"
component: "gsql-ref"
version: "4.3"
module: "ddl-and-loading"
html_url: "/gsql-ref/4.3/ddl-and-loading/functions/token_where/gsql_is_true"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/4.3/ddl-and-loading/functions/token_where/gsql_is_true"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/4.3/ddl-and-loading/functions/token_where/gsql_is_true.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/4.3/ddl-and-loading/functions/token_where/gsql_is_true)

# gsql_is_true()

Returns true if the input token is either "t" or "true" (case-insensitive). Returns false otherwise.

## Syntax

`gsql_is_true( token )`

## Return value

`BOOL`. Returns true if the input token is either "t" or "true" (case-insensitive). Returns false otherwise.

## Example

gsql_is_true( "T" ) -> true
gsql_is_true("True") -> true
gsql_is_true("abc") -> false
