Lasso Soft Inc. > Home

[Null->Type]

[Null->Type] returns the data type of a value.

Member tags for Null can be used on values of any data type including custom, third party data types.

  • Syntax
  • Parameters
[Value->Type]
Required Parameters
Value The value of any data type for which the type should be returned.
Examples

To display the type of a value:

Use the [Null->Type] tag. The following example stores values of different types in an array, then fetches the type for each value using [Loop] ... [/Loop] tags.

[Var: 'Values'=(Array: 'Hello', 123, 123.456, Null)]
[Loop: $Values->Size]
  <br>[Output: $Values->(Get: (Loop_Count))]:
  [Output: $Values->(Get: (Loop_Count))->Type]
[/Loop]
Result:
<br>Hello: String
<br>123: Integer
<br>123.456: Decimal
<br> : Null
Tag Link [Null->Type] Category Technical
Type Member Data Source Any
Support Preferred Version 5.0
Output Type String Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft