Need help with jquery as variable

Need help with jquery as variable

Hi,
I would like to use jquery as variable, first is this possible and if so what am I do wrong?
Any help would be awesome. What I'm trying to do is if #someid has display set to none set var test to IfAnswer else set var test to ElseAnswer.

var test = ($('#someid').css('display':'none')) ? IfAnswer : ElseAnswer;

thanks
Daniel