I must change a Inno Setup script. But I cannot compile it (every time I compile, I have to wait almost 1 hour for the build to finish). I need to know how to write the following expression that is in C++ pseudocode:
if ((A==B) || (A==C))
{
// do something
}
The question is how should I write that in Inno Setup script, and, if possible, do you know if this scripting language is specific for Inno Setup or can I find a guide somewhere? In the official website it's very hard to get what you want in a simple way, it's rather confusing and I couldn't find simple examples with OR
(the examples are very very basic).
The language that is used by Inno Setup scripting engine is based on Pascal and at least the general syntax you can learn from Pascal language. Closest language to Inno Setup Pascal Script is Delphi (in which is Inno Setup written btw.). The code you've asked to translate would look like this:
if (A = B) or (A = C) then
begin
{ do something }
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With