Quantcast
Channel: Array question- need to check off elements in the array
Browsing latest articles
Browse All 2 View Live

Array question- need to check off elements in the array

I have 2 arrays, I’m trying to fill in a table and check off (true false) for tasks. ie task =[ take out the trash, wash the dishes, mow the lawn] the other array of user are assigned tasks ; ie Fred...

View Article



Array question- need to check off elements in the array

Hey Joe, You can use the ‘include?’ method from Ruby. It checks whether a specific item is included in an array or not. See the example below. tasks = ['take out the trash', 'wash the dishes', 'mow...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images