Dibs.test

Version: - string  

Summary

Returns the state of the Test mode checkbox.

Settings

The value is generated automatically.

Remarks

The value comes from the Test mode field for the payment gateway.
(Management Center > eCommerce settings > Orders > Payment > Payment method > General > Parameters > Test mode)

Examples

Outputting the template tag

@GetString("Dibs.test")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Dibs.test"); }

Outputting the template tag

<!--@Dibs.test-->

Check if string has a value

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