ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Need help adding numbers :(

March 08, 2011 8:34am

Subscribe [1]
  • #1 / Mar 08, 2011 8:34am

    vlad

    213 posts

    Yep, its as stupid as it sounds.

    I built this intricate website using matrix, playa and mx:calculator and now I need help adding #‘s LOL

    {players}
    {game_data search:game_matrix="{parent:url_title}”}
    {exp:mx_calc expression='sum( ({f_g_m} *2), ({t_p_m} * 3), {f_t_m} )’}
    {/game_data}
    {/players}

    this little bit of code is from the games channel, it pulls in (via playa) the 2 teams participating in the games, and again via playa the players participating in the teams. The player scores are matrix based.

    so {players} is playa
    and {game_data} is matrix
    I isolated the scores by the game per player ...
    and used mx calculator to take the # of free throws add it to nunber of 3pointer x3 and field goals x2 to get the final score for each player for that game…

    lets say my results are 23 34 31 45

    NOW HOW DO I ADD THEM UP TO GET THE GAMES SCORE! ARG lol

    I can’t {exp:mx_calc expression=’ the whole thing, and I don’t know JS well enough to write a formula. Help please.

    :D <<< DUUUR

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases