Everything is possible, but I'm not quite sure what you want to do..
on platform created you should check the width of the platform
if the platform is more than 200 in width create a random function to put or not put spikes on it..
so something like this:
on platform created
system compare two values: platform.width > 200
- call function "Spikes" with parameter 0=choose(0,1) ,parameter 1=platform.x ,parameter 2=platform.width , parameter 3=platform.y
on function "Spikes"
compare function parameter function.param(0) = 1
- create object spikes at x=random(function.param(1)+100,function.param(1)+function.param(2)-100) y=function.param(3)