Consent.Status

Version: 9.5.0 string  

Summary

Returns consent status. Can be 'None', 'Given' or 'Withdrawn'.

Settings

Consent can be changed to 'Given/Withdrawn' when editing the user profile.

Examples

Outputting the template tag

@GetString("Consent.Status")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Consent.Status"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Consent.Status"); }

Outputting the template tag

<!--@Consent.Status-->

Check if string has a value

<!--@If Defined(@Consent.Status)--> Let's output this tag here: <strong><!--@Consent.Status--></strong> <!--@EndIf(@Consent.Status)-->