LassoScript Utility
Basics Browse Detail


Tag Link [Null->Type] Category Tags
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


[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.




No Parameters Required.


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]

<br>Hello: String
<br>123: Integer
<br>123.456: Decimal
<br> : Null