Page 1 of 1

Boolean expression request - window_id.isLayout(layout_id)

Posted: 14 May 2006 18:24
by tvtalkshowshigh
would it be possible to add a boolean expression to the skins2 interface please?

while skins2 allows you to check the visibility of a "window" it doesn't let you check the "layout" of that window.

i'd suggest something along the lines of:

window_id.isLayout(layout_id)

thanks in advance,

mark.

Posted: 14 May 2006 20:11
by ipkiss
Yes, this makes sense, and it should be easy to do.
It will be added soon :)

Posted: 14 May 2006 21:13
by tvtalkshowshigh
excellent! :D

thanks ipkiss.

Posted: 15 May 2006 00:20
by ipkiss
Done. The syntax is:

Code: Select all

LayoutID.isActive

Posted: 15 May 2006 09:07
by tvtalkshowshigh
a much friendlier syntax than my suggestion.

i was forgetting that layout IDs are globally unique, rather than being local to their window.

thanks again,

mark.

Posted: 15 May 2006 09:19
by ipkiss
You found the "aesthetical" reason for this syntax, but there was also a technical one: since the parentheses are already used for the priority in boolean expressions, it would have made the parser much more complex :-)