Forum:Global.User.ID

Version: - integer  

Summary

Returns ID of the currently logged in Extranet user.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("Forum:Global.User.ID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Forum:Global.User.ID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Forum:Global.User.ID"); }

Outputting the template tag

<!--@Forum:Global.User.ID-->

Check if integer has a value

<!--@If Defined(@Forum:Global.User.ID)--> Let's output this tag here: <strong><!--@Forum:Global.User.ID--></strong> <!--@EndIf(@Forum:Global.User.ID)-->