Jump to content











Photo
- - - - -

WinBuilder Syntax / Operators / Exc.

winbuilder operators syntax

  • Please log in to reply
1 reply to this topic

#1 wjsorensen

wjsorensen
  • Members
  • 1 posts
  •  
    United States

Posted 31 May 2017 - 11:55 PM

I have looked around for a bit and cannot find any documentation about syntax and operators that would explain the following:

 

Let's use this line of code for example:

If,%OS%,Equal,Win7,Begin
  If,Not,%ProjectName%,Equal,Win7PESE,Begin
    ShellExecute,Open,http://spam/index.php?topic=131.0
    Message,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building.#$x#$xLook at Win7PESE home page: http://spam/index.php?topic=131.0",ERROR
    Halt,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building."
  End
End

Now I will edit this code with what I would think would work, or what I am trying to accomplish and let's see if anyone would know how to do it?

If,%OS%,Equal,Win7,Begin
  If,Not,%ProjectName%,Equal,Win7PESE or SomeOtherProject1 or SomeOtherProject2,Begin
    ShellExecute,Open,http://spam/index.php?topic=131.0
    Message,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building.#$x#$xLook at Win7PESE home page: http://spam/index.php?topic=131.0",ERROR
    Halt,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building."
  End
End

So how would you go about accomplishing what I just showed you?

 

Is there a switch or case for WinBuilder for example?


Edited by wjsorensen, 01 June 2017 - 12:03 AM.


#2 paraglider

paraglider

    Gold Member

  • .script developer
  • 1716 posts
  • Location:NC,USA
  •  
    United States

Posted 01 June 2017 - 01:09 AM

There is no or / switch / case only a simple if with one condition. See: http://wb.paraglider...lp/default.html







Also tagged with one or more of these keywords: winbuilder, operators, syntax

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users