# Conditionality – Advanced Mode C# Tips

## Case-Sensitivity <a href="#a-case-sensitivity" id="a-case-sensitivity"></a>

‌Please be aware that C# Script methods and properties are case-sensitive (e.g. “SubString” would throw an error, whereas “Substring” would work). Comparisons of text fields are also case-sensitive, so an expression of “customerName = ‘My Test Company’ would not match if the company name was “My test company”.‌‌

## Enate Custom Data Type vs .Net Type <a href="#b-enate-custom-data-type-vs-net-type" id="b-enate-custom-data-type-vs-net-type"></a>

‌It is important to understand the .Net Type of the field or variable you are using to understand the properties and methods that are available:

| Custom Data Data Type | .Net Type                              | .Net Type Information Page                                      |
| --------------------- | -------------------------------------- | --------------------------------------------------------------- |
| Short Text            | String                                 | ​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​   |
| Long Text             | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Email Address         | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| List                  | String                                 | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Multi Level List      | String (each level separated by a “.”) | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Whole Number          | Integer                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.int32>​    |
| Decimal Number        | Decimal                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.decimal>​  |
| Date and Time         | DateTime (in UTC)                      | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Date                  | DateTime (in UTC)                      | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Checkbox              | Boolean                                | ​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​  |

| Variables Data Type              | .Net Type                                                                                                                                                                                                            | .Net Type Information Page                                      |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Platform Name                    | String                                                                                                                                                                                                               | ​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​   |
| Customer Name                    | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Supplier Name                    | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Contract Name                    | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Service Name                     | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Process Name                     | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Service Line Name                | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Reference              | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Title                  | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Started by Method                | <p>String – One of: </p><p>ByWorkflow </p><p>ByOperationalUser </p><p>BySelfServiceUser </p><p>ByRobotUser</p><p>ByEmail</p><p>FromTicket</p><p>ByOperationalUserInBulk</p><p>ByRobotUserInBulk</p><p>BySchedule</p> | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Started by Method    | <p>String – One of: </p><p>ByWorkflow </p><p>ByOperationalUser BySelfServiceUser </p><p>ByRobotUser</p><p>ByEmail</p><p>FromTicket</p><p>ByOperationalUserInBulk</p><p>ByRobotUserInBulk</p><p>BySchedule</p>        | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Name                 | String (in English)                                                                                                                                                                                                  | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Last Action Reference            | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Schedule Period        | String                                                                                                                                                                                                               | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.string>​  |
| Work Item Schedule Year          | Integer                                                                                                                                                                                                              | ​<https://docs.microsoft.com/en-us/dotnet/api/system.int32>​    |
| Work Item Start Date             | DateTime (in UTC)                                                                                                                                                                                                    | ​<https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​ |
| Work Item Due Date               | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Last Action End Date             | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Last Action Start Date           | DateTime (in UTC)                                                                                                                                                                                                    | <https://docs.microsoft.com/en-us/dotnet/api/system.datetime>​  |
| Work Item is Overdue             | Boolean                                                                                                                                                                                                              | ​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​  |
| Work Item Due Date Is Overridden | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​ |
| Work Item is Test Mode           | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>​ |
| Last Action Completed Overdue    | Boolean                                                                                                                                                                                                              | ​​<https://docs.microsoft.com/en-us/dotnet/api/system.boolean>  |
