Click or drag to resize

EAPUtilIsTruthy Method

Determines whether a string value is "truthy". Truthy is defined as any string that is not null or empty and not "0" when trimmed. Note that this is slightly different from the javascript definition of a truthy string where '0' would be considered truthy. This difference is intended to allow for easy testing of a string that alter will be converted to a numeric value where zero would not be considered truthy.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool IsTruthy(
	string s
)

Parameters

s
Type: SystemString
The string to test.

Return Value

Type: Boolean
True if the string is "truthy", else false.
See Also