Target Relevance by RAM Amount


I’m looking to create a fixlet that targets computers by the amount of RAM they have. I need the bottom to be 4GB and the top-end to be less-than 8GB. I have:

(exists true whose (if true then exists ram else false)) then (if (it > 128) then ( ((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0) ) else it) of (size of ram / (1024*1024)) as string & " MB" > 4064 < 8000

but it is not able to parse. Where am I going wrong?


You are trying to parse it at all is part of the problem, but also you are trying to do integer comparison on a string.

This is what you want:

(it > (4*1024*1024*1024) AND it < (8*1024*1024*1024)) of size of ram
1 Like

You converted the ram size to a string then tried to compare it to numbers which seems strange.

q: size of ram
A: 3220688896
T: 0.040 ms
I: singular integer

Thats my result and the following:

q: ( it > (4*1024*1024*1024) AND it < (8*1024*1024*1024) ) of size of ram
A: False
T: 0.060 ms
I: singular boolean

Should give you the answer

1 Like

Great minds think alike (and strangely we came up with the exact same relevance)

1 Like

Impressive considering the sheer number of possible ways to do it.

Like this, which is extra complicated:

exists rams whose( exists sizes whose(it > (4*1024*1024*1024) AND it < (8*1024*1024*1024)) of it )
1 Like

This all worked great. Thanks!