Product.CustomField.Value.Clean

Version: - string  

Summary

Returns clean value of the custom field.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Product.CustomField.Value.Clean")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Product.CustomField.Value.Clean"); }

Outputting the template tag

<!--@Product.CustomField.Value.Clean-->

Check if string has a value

<!--@If Defined(@Product.CustomField.Value.Clean)--> Let's output this tag here: <strong><!--@Product.CustomField.Value.Clean--></strong> <!--@EndIf(@Product.CustomField.Value.Clean)-->