In the default section of a formula, I would like to be able to do the commented line below but the compiler does not allow it:

int param n1
    min=1
endparam
int param n2
     min=1
     max=@n1    ; compiler says invalid setting
endparam
In the default section of a formula, I would like to be able to do the commented line below but the compiler does not allow it: ```` int param n1 min=1 endparam int param n2 min=1 max=@n1 ; compiler says invalid setting endparam ````
 
0
reply

That's right, only the default setting allows expressions at the moment. What you're suggesting should be possible, but there are of course potential issues: what if the calculated max value is less than min; what if the current value is above the new maximum if it changes, etc...

That's right, only the default setting allows expressions at the moment. What you're suggesting should be possible, but there are of course potential issues: what if the calculated max value is less than min; what if the current value is above the new maximum if it changes, etc...

Ultra Fractal author

 
0
reply

Yes, there are possible problems that would have to be taken care of. But probably possible. Not a high priority for your time.

Yes, there are possible problems that would have to be taken care of. But probably possible. Not a high priority for your time.
 
0
reply
105
views
2
replies
2
followers
live preview
Enter at least 10 characters.
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft