save by OS version

For questions about using Classic.

Post » Wed Aug 22, 2012 11:36 am

I need to use same path for windows 7 and for windows vista. will it work if I will make this? (i would try it, but i have not windows vista)


system: is global variable osversion equal to 6.1
or
system: is global variable osversion equal to 6.0

just need to know if i am using "or" conditon right for this case,
thanks
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Wed Aug 22, 2012 1:00 pm

I'd prefer to not use the 'or' condition. It may not behave as you'd expect. Better use the system's evaluation condition:

+ System: global('osversion') = 6.0 or global('osversion') = 6.1
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Wed Aug 22, 2012 6:27 pm

it writes error in parameter 1...
how exactly do i need to write it?
thanksjoxer2012-08-22 18:30:32
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Thu Aug 23, 2012 12:08 am

The parser has problems sometimes interpreting the correct order. Try setting the equations in brackets:
(global('osversion') = 6.0) or (global('osversion') = 6.1)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Aug 24, 2012 1:29 pm

it works, thanks!
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests