GithubHelp home page GithubHelp logo

Comments (2)

OmarEmaraDev avatar OmarEmaraDev commented on July 22, 2024

You are not comparing the list and the value. Basically, when a list is used as an iterator, the list feeds the loop its nth element at the nth iteration. So:

  1. At the first iteration, the list feeds the loop the first integer 1, it checks if it is bigger than the Max which is 1, since it isn't, nothing happens.
  2. At the second iteration, the list feeds the loop the second integer 28, it checks if it is bigger than the Max which is 1, since it is, it reassign the Max to the integer 28.
  3. At the third iteration, the list feeds the loop the third integer 34, it checks if it is bigger than the Max which is 28, since it is, it reassign the Max to the integer 34.
  4. At the fourth iteration, the list feeds the loop the fourth integer 17, it checks if it is bigger than the Max which is 34, since it isn't, nothing happens.
  5. At the last iteration, the list feeds the loop the last integer 65, it checks if it is bigger than the Max which is 34, since it is, it reassign the Max to the integer 65.

When the parameter Max is output (Check the Parameters Sockets section of the documentation), it carries the value 65, which is the greatest value in the list. Does it make sense now?

from animation_nodes_manual.

RodeyOrg avatar RodeyOrg commented on July 22, 2024

That's great, thank you.

After days on this, any chance of being able to identifying what is wrong here by a screenshot? My output is stuck, i.e. doesn't change value.

from animation_nodes_manual.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.