OMC:Notification.Visitor.IPAddress

Version: - string  

Summary

Returns IP address of visitor.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("OMC:Notification.Visitor.IPAddress")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("OMC:Notification.Visitor.IPAddress"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("OMC:Notification.Visitor.IPAddress"); }

Outputting the template tag

<!--@OMC:Notification.Visitor.IPAddress-->

Check if string has a value

<!--@If Defined(@OMC:Notification.Visitor.IPAddress)--> Let's output this tag here: <strong><!--@OMC:Notification.Visitor.IPAddress--></strong> <!--@EndIf(@OMC:Notification.Visitor.IPAddress)-->