Get Data Type (get-type)

Returns the data-type of a variable or pipe

Description

get-type returns the Murex data-type of a variable or pipe without reading the data from it.

Usage

get-type \$variable -> <stdout>

get-type stdin -> <stdout>

get-type pipe -> <stdout>

Examples

Get data-type of a variable

» set json example={[1,2,3]}
» get-type \$example
json

Please note that you will need to escape the dollar sign. If you don’t the value of the variable will be passed to get-type rather than the name.

Get data-type of a functions stdin

» function example { get-type stdin }
» tout json {[1,2,3]} -> example
json

Get data-type of a Murex named pipe

» pipe example
» tout <example> json {[1,2,3]}
» get-type example
» !pipe example
json

See Also


This document was generated from builtins/core/typemgmt/gettype_doc.yaml.

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Sat Nov 23 00:50:15 UTC 2024 against commit 69c17da69c17da3bd9db98ca508f6a03a402f074ee24cec.

Current version is 6.4.0375 (develop) which has been verified against tests cases.