Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-09

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

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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?

Reply by email

Sven Barth
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote
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

Reply by email