Reputation: 623
Currently I have problem in defining a boolean variable :
I have a class with a boolean variable:
Pet:
isFeline ?= 'cat' | isFeline ?= 'dog' ;
However this result in Pet returning with 'cat'/'dog' as true. Is there anyway to define DSL: 'cat' as true and 'dog' as false ??
Upvotes: 1
Views: 1022
Reputation: 590
Maybe you can try this:
Pet:
{Pet} (isFeline?='cat' | 'dog');
Normally it should do what you want!
Upvotes: 2