How stablish a variable between two numbers?


#1

I use a rand command , and I want to do this


*rand style 1 1000
*page_break
*if style < 300
    text
*elseif (style >300 and <600)

I try several times no avail always error the br its no code its my mobile


#2

*elseif ((style > 300) and (style < 600)) - Should work.


#3

thanks I thought I couldn’t use several times a variable in a code line


#4

You can but you have to beware of concatenation. Look it up on the wiki for a better grasp of the topic.