Welcome, Guest. Please login or register.

Author Topic: Is this possible? (make a startup sequence skip something)  (Read 1550 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Ilwrath

We probably don't need someone who hasn't written a custom startup-sequence in about 10 years to re-enforce that Piru's solution is correct....  But, I'll do it anyhow.  :-P  

In your case, you don't even need the else clause.

Code: [Select]

version >nil: someromcomponent 45
if warn
  ROMTAGMEM
endif
setpatch
[... startup continues ...]

 

Offline Ilwrath

Re: Is this possible? (make a startup sequence skip something)
« Reply #1 on: March 20, 2008, 04:37:27 PM »
The c:version command has extra switches besides displaying the version number.  It can also compare a file or library version number to a fixed number to see if it meets minimum requirements.  If it does not, it sets a warn value.  

version >NIL: somelib 45
returns a warn if the version of somelib is below 45, and a succeed if 45 or above.

The IF WARN checks if the previous command set a warn value.  :-)

(EDITED to add clarity)