# existsStreamTable {#existsstreamtable}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`existsStreamTable(tableName)`

## Arguments {#arguments}

**tableName**is a string indicating the name of a stream table. It can be a regular, shared, persisted, or high-availability stream table.

## Details {#details}

Check if the specified stream table exists.

If it exists, return true; otherwise, return false.

## Examples {#examples}

``` {#codeblock_fjb_kb3_zzb}
id=`XOM`GS`AAPL
x=102.1 33.4 73.6
rt=streamTable(id, x);
existsStreamTable(`rt) 
// output: true

existsStreamTable(`srt)  
// output: false

share rt as srt
existsStreamTable(`srt)  
// output: true
```

