[Pas2js] is it possible to use logical operators in if then condition block

Sven Barth pascaldragon at googlemail.com
Sat Sep 19 22:01:32 CEST 2020


Am 19.09.2020 um 20:50 schrieb Mgr. Janusz Chmiel:
> Is it possible to use And Or Not commands between if and then? Or
> unfortunately, Java script do not contain those operators so it is
> impossible to use it from Pascal source in Pas2js?
So far there isn't a restriction on expressions that can be used in the 
if-clause of the if-statement, thus, yes, AND as well as NOT operators 
can be used.

Why do you ask? Did you encounter an error?

Regards,
Sven


More information about the Pas2js mailing list