Forum Discussion

Dicken's avatar
Dicken
Post Prodigy
8 months ago
Solved

List Generate Average as record;

  Hi, can someone explain what is happening here;   I have a standard accumulaton, with two outcomes  one for the sum and one for average ;  let alist = List.Numbers( 1, 20 ,1 ) in List.Genera...
  • PhilipTreacy's avatar
    PhilipTreacy
    8 months ago

    Dicken 

     

    I'm not sure what you are asking here.

     

    Clearly in the code z and y are always the same.

     

    But what is this?  It makes no sense.  Where are you getting this from?

     

     z / 2   <>    z = y/2

     

    You can't say a thing (z/2) is not equal (or equal) to another thing (z=y/2). 

     

    You can't have an assignment on one side of a logical test like this

     

    Again not sure how esle to explain this other than how I have.

     

     z / 2   <>    z = y/2 makes no sense mathematically and I don't know what you are trying to do there.

     

    Phil