Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

ConditionValidAttribute

A topic by CatyboyStudio created Oct 24, 2022 Views: 74
Viewing posts 1 to 1
(2 edits)

Define a Test of validity condition

[ConditionValid("Cond4", nameof(S1), "notempty")]

 Determine whether the property S1(string) is not null and not empty


TestType

Property Type

Help

empty

string

IsNullOrEmpty

notempty

string

not IsNullOrEmpty

null

class object

 ==null

notnull

class object

 != null

<none>

anything

string: not IsNullOrEmpty

class object: not null

ValueType(struct): not equals to default value

  For more information, please refer to the "Condition" description section

[v1.3]