Click or drag to resize
TransformationHelperIfEmpty Method

Note: This API is now obsolete.

Returns nonEmptyResult if value is null or empty, else returns emptyResult.

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("This method is obsolete and will be removed in the next version. Use custom implementation instead.")]
public Object IfEmpty(
	Object value,
	Object emptyResult,
	Object nonEmptyResult
)

Parameters

value
Type: SystemObject
Conditional value
emptyResult
Type: SystemObject
Empty value result
nonEmptyResult
Type: SystemObject
Non empty value result

Return Value

Type: Object
See Also