Jump to content

Find minimum in array loop until...


silkfire

Recommended Posts

I need help this problem seem too tricky for me right now.

 

I got an array with decimal numbers and behind it says Yes/No. The min() function works magically and still is able to correctly give me the lowest value.

But how do i make a while loop that loops until it pops a value that is lowest and has Yes behind it?

 

For example:

 

Array => ('11,64|No', '209,81|Yes', '533,42|Yes', '27,90|No', '93,01|Yes')

 

So this function should return '93,01|Yes'

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.