Ok I figured it out for reference I will post here

to check if a checkbox has been checked do this

if session.the_checkbox_name == "on":
        expression


Cheers

Andrew


On Fri, May 14, 2010 at 1:32 PM, Andrew Evans <evans.d.and...@gmail.com>wrote:

> Hello I have been doing research and still trying to figure how to check if
> a check box is checked
>
> This is what I have but it doesn't work.. I think the values are not passed
>
> myDimensions = []
>     if session.browser and session.browser == "on":
>         myDimensions.append("browser")
>     myMetrics = []
>     if session.pageviews and session.pageviews == "on":
>         myMetrics.append("pageviews")
>     if session.newVisits and session.newVisits == "on":
>         myMetrics.append("newVisits")
>
>
> Any idea how to check for a value in a check box
>
> Cheers
>
> Andrew
>
>

Reply via email to