24 views
in GUI Development by
Hi ,

   I have started small examples in Embeeded wizard.

if (classname ==  Application::class name.enum1 &&  classname ==  Application::class name.enum2 )-- this condition is correct?

how to use AND ,OR operations in embeeded wizard. how to pass arguments can you pleae help me to learn this concept.

1 Answer

0 votes
by

Hello GuruRamesh,

how to use AND ,OR operations in embeeded wizard. how to pass arguments can you pleae help me to learn this concept.

concerning this question to help you learning Embedded Wizard concepts, I would recommend our knowledge base. The usage of operators (e.g. logical AND, logical OR, etc.) is described there in the section: Programming language Chora: Operators.

if (classname ==  Application::class name.enum1 &&  classname ==  Application::class name.enum2 )-- this condition is correct?

I'm not sure what intention have the enum1 and enum2 in the above expression. Also the usage of AND operator will not work in this case since both conditions are never fulfilled  simultaneously. Possibly you want to use the OR operator here? Generally, following would be the correct implementation to test whether the class stored within a variable is equal to one predetermined class:

var class classname = Views::Text;

if ( classname == Views::Text )
  trace "classname is Views::Text";

The above condition tests only whether classname is exact the given class. With a class runtime cast operator you can test whether a class stored in a variable does descend from one particular class:

var class classname = Views::Text;

if ((Core::View)classname )
   trace "classname is Core::View or it descends from Core::View";

Best regards

Paul Banach

Embedded Wizard Website | Privacy Policy | Imprint

...