# Constants

## Byte

Represents a number with the length of a Byte.

#### Syntax <a href="#pragma-line-4026" id="pragma-line-4026"></a>

```
Byte ( Value )
```

#### Parameters <a href="#pragma-line-4032" id="pragma-line-4032"></a>

***Value***\
&#x20;The value which is returned as a Byte.\
&#x20;Type: Byte

#### Return Type <a href="#pragma-line-4039" id="pragma-line-4039"></a>

Byte

## Char

Represents a specified character.

#### Syntax <a href="#pragma-line-4048" id="pragma-line-4048"></a>

```
Char ( Value )
```

#### Parameters <a href="#pragma-line-4054" id="pragma-line-4054"></a>

***Value***\
&#x20;The value which is returned as a Char.\
&#x20;Type: Char

#### Return Type <a href="#pragma-line-4061" id="pragma-line-4061"></a>

Char

## DateTime

Represents a specified DateTime element. Input format: "24.12.2013 19:00:00.000"

#### Syntax <a href="#pragma-line-4070" id="pragma-line-4070"></a>

```
DateTime ( Value )
```

#### Parameters <a href="#pragma-line-4076" id="pragma-line-4076"></a>

***Value***\
&#x20;The value of the DateTime Object.\
&#x20;Type: DateTime

#### Return Type <a href="#pragma-line-4083" id="pragma-line-4083"></a>

DateTime

## DateTime2

Represents a specified DateTime element.

#### Syntax <a href="#pragma-line-4092" id="pragma-line-4092"></a>

```
DateTime2 ( [Year] [, Month] [, Day] [, Hour] [, Minute] [, Second] [, Millisecond] )
```

#### Parameters <a href="#pragma-line-4098" id="pragma-line-4098"></a>

***Year*** (optional)\
&#x20;The year of the DateTime Object.\
&#x20;Type: Int

***Month*** (optional)\
&#x20;The month of the DateTime Object.\
&#x20;Type: Int

***Day*** (optional)\
&#x20;The day of the DateTime Object.\
&#x20;Type: Int

***Hour*** (optional)\
&#x20;The hour of the DateTime Object.\
&#x20;Type: Int

***Minute*** (optional)\
&#x20;The minute of the DateTime Object.\
&#x20;Type: Int

***Second*** (optional)\
&#x20;The second of the DateTime Object.\
&#x20;Type: Int

***Millisecond*** (optional)\
&#x20;The millisecond of the DateTime Object.\
&#x20;Type: Int

#### Return Type <a href="#pragma-line-4129" id="pragma-line-4129"></a>

DateTime

## DateTime3

Represents a specified DateTime element.

#### Syntax <a href="#pragma-line-4138" id="pragma-line-4138"></a>

```
DateTime3 ( Ticks )
```

#### Parameters <a href="#pragma-line-4144" id="pragma-line-4144"></a>

***Ticks***\
&#x20;The ticks of the DateTime Object.\
&#x20;Type: Long

#### Return Type <a href="#pragma-line-4151" id="pragma-line-4151"></a>

DateTime

## Double

Returns a specified Double Value. Integers, floats, etc. are casted implicitly.

#### Syntax <a href="#pragma-line-4160" id="pragma-line-4160"></a>

```
Double ( Value )
```

#### Parameters <a href="#pragma-line-4166" id="pragma-line-4166"></a>

***Value***\
&#x20;The value which is returned as a double.\
&#x20;Type: Double

#### Return Type <a href="#pragma-line-4173" id="pragma-line-4173"></a>

Double

## False

Represents a false constant.

#### Syntax <a href="#pragma-line-4182" id="pragma-line-4182"></a>

```
False (  )
```

#### Parameters <a href="#pragma-line-4188" id="pragma-line-4188"></a>

No parameters

#### Return Type <a href="#pragma-line-4192" id="pragma-line-4192"></a>

Boolean

## Float

Represents a specified Float Value. Integers, Double, etc. are casted implicitly.

#### Syntax <a href="#pragma-line-4201" id="pragma-line-4201"></a>

```
Float ( Value )
```

#### Parameters <a href="#pragma-line-4207" id="pragma-line-4207"></a>

***Value***\
&#x20;The value which is returned as a Float.\
&#x20;Type: Float

#### Return Type <a href="#pragma-line-4214" id="pragma-line-4214"></a>

Float

## Guid

Represents a specified GUID element. The input format is: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

#### Syntax <a href="#pragma-line-4223" id="pragma-line-4223"></a>

```
Guid ( Value )
```

#### Parameters <a href="#pragma-line-4229" id="pragma-line-4229"></a>

***Value***\
&#x20;The value which will be returned as a Guid.\
&#x20;Type: Guid

#### Return Type <a href="#pragma-line-4236" id="pragma-line-4236"></a>

Guid

## NewGuid

Action for creation of a new GUID element.

#### Syntax

```
Guid NewGuid()
```

#### Parameters

This action does not have any parameter.

#### Return Type

Guid

## Int

Represents a specified Integer Value.

#### Syntax <a href="#pragma-line-4245" id="pragma-line-4245"></a>

```
Int ( Value )
```

#### Parameters <a href="#pragma-line-4251" id="pragma-line-4251"></a>

***Value***\
&#x20;The value which is returned as an Int.\
&#x20;Type: Int

#### Return Type <a href="#pragma-line-4258" id="pragma-line-4258"></a>

Int

## Language

Represents a language element.

#### Syntax <a href="#pragma-line-4267" id="pragma-line-4267"></a>

```
Language ( Value )
```

#### Parameters <a href="#pragma-line-4273" id="pragma-line-4273"></a>

***Value***\
&#x20;The value which is returned as a Language.\
&#x20;Type: Language

#### Return Type <a href="#pragma-line-4280" id="pragma-line-4280"></a>

Language

## Long

Represents a long value.

#### Syntax <a href="#pragma-line-4289" id="pragma-line-4289"></a>

```
Long ( Value )
```

#### Parameters <a href="#pragma-line-4295" id="pragma-line-4295"></a>

***Value***\
&#x20;The value which is returned as a long.\
&#x20;Type: Long

#### Return Type <a href="#pragma-line-4302" id="pragma-line-4302"></a>

Long

## Null

Represents a NULL value.

#### Syntax <a href="#pragma-line-4311" id="pragma-line-4311"></a>

```
Null (  )
```

#### Parameters <a href="#pragma-line-4317" id="pragma-line-4317"></a>

No parameters

#### Return Type <a href="#pragma-line-4321" id="pragma-line-4321"></a>

Any

## Short

Represents a 16-bit signed integer.

#### Syntax <a href="#pragma-line-4330" id="pragma-line-4330"></a>

```
Short ( Value )
```

#### Parameters <a href="#pragma-line-4336" id="pragma-line-4336"></a>

***Value***\
&#x20;Value which is returned as Short value.\
&#x20;Type: Short

#### Return Type <a href="#pragma-line-4343" id="pragma-line-4343"></a>

Short

## String

Represents a String constant.

#### Syntax <a href="#pragma-line-4352" id="pragma-line-4352"></a>

```
String ( Value )
```

#### Parameters <a href="#pragma-line-4358" id="pragma-line-4358"></a>

***Value***\
&#x20;Text of the String.\
&#x20;Type: String

#### Return Type <a href="#pragma-line-4365" id="pragma-line-4365"></a>

String

## TimeSpan

Represents a specified TimeSpan element. Input format: "1:14:30:15.000"

#### Syntax <a href="#pragma-line-4374" id="pragma-line-4374"></a>

```
TimeSpan ( Value )
```

#### Parameters <a href="#pragma-line-4380" id="pragma-line-4380"></a>

***Value***\
&#x20;The value of the TimeSpan Object.\
&#x20;Type: TimeSpan

#### Return Type <a href="#pragma-line-4387" id="pragma-line-4387"></a>

TimeSpan

## TimeSpan2

Represents a specified TimeSpan element.

#### Syntax <a href="#pragma-line-4396" id="pragma-line-4396"></a>

```
TimeSpan2 ( [Day] [, Hour] [, Minute] [, Second] [, Millisecond] )
```

#### Parameters <a href="#pragma-line-4402" id="pragma-line-4402"></a>

***Day*** (optional)\
&#x20;The day of the TimeSpan Object.\
&#x20;Type: Int

***Hour*** (optional)\
&#x20;The hour of the TimeSpan Object.\
&#x20;Type: Int

***Minute*** (optional)\
&#x20;The minute of the TimeSpan Object.\
&#x20;Type: Int

***Second*** (optional)\
&#x20;The second of the TimeSpan Object.\
&#x20;Type: Int

***Millisecond*** (optional)\
&#x20;The millisecond of the TimeSpan Object.\
&#x20;Type: Int

#### Return Type <a href="#pragma-line-4425" id="pragma-line-4425"></a>

TimeSpan

## TimeSpan3

Represents a specified TimeSpan element.

#### Syntax <a href="#pragma-line-4434" id="pragma-line-4434"></a>

```
TimeSpan3 ( Ticks )
```

#### Parameters <a href="#pragma-line-4440" id="pragma-line-4440"></a>

***Ticks***\
&#x20;The ticks of the TimeSpan Object.\
&#x20;Type: Long

#### Return Type <a href="#pragma-line-4447" id="pragma-line-4447"></a>

TimeSpan

## True

Represents a TRUE constant.

#### Syntax <a href="#pragma-line-4456" id="pragma-line-4456"></a>

```
True (  )
```

#### Parameters <a href="#pragma-line-4462" id="pragma-line-4462"></a>

No parameters

#### Return Type <a href="#pragma-line-4466" id="pragma-line-4466"></a>

Boolean

## Decimal

Represents a specified Decimal Value

#### Syntax <a href="#pragma-line-4352" id="pragma-line-4352"></a>

```
Decimal ( Value )
```

#### Parameters <a href="#pragma-line-4358" id="pragma-line-4358"></a>

***Value***\
Value as Decimal (constant): The value which is returned as a Decimal.

#### Return Type <a href="#pragma-line-4365" id="pragma-line-4365"></a>

Decimal


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tivity.one/building-an-application/execution/scripting/functions/constants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
