0
0
No-Codeknowledge~10 mins

Search and filtering in No-Code - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Search and filtering
Start with Data List
Input Search Term
Check Each Item
Does Item Match?
NoSkip Item
Yes
Add Item to Results
More Items?
YesCheck Each Item
No
Show Filtered Results
The flow starts with a list of data, takes a search term, checks each item for a match, collects matching items, and finally shows the filtered results.
Execution Sample
No-Code
data = ['apple', 'banana', 'cherry', 'date']
search = 'a'
results = []
for item in data:
  if search in item:
    results.append(item)
print(results)
This code searches for items containing 'a' in a list and collects them into results.
Analysis Table
StepCurrent ItemCondition (search in item)ActionResults List
1'apple'TrueAdd 'apple'['apple']
2'banana'TrueAdd 'banana'['apple', 'banana']
3'cherry'FalseSkip 'cherry'['apple', 'banana']
4'date'TrueAdd 'date'['apple', 'banana', 'date']
5No more itemsN/AEnd loop['apple', 'banana', 'date']
💡 All items checked, loop ends.
State Tracker
VariableStartAfter 1After 2After 3After 4Final
itemN/A'apple''banana''cherry''date'N/A
results[]['apple']['apple', 'banana']['apple', 'banana']['apple', 'banana', 'date']['apple', 'banana', 'date']
Key Insights - 2 Insights
Why is 'cherry' not added to the results even though it is in the list?
'cherry' does not contain the letter 'a', so the condition is False at step 3 in the execution_table, and it is skipped.
What happens if the search term is empty?
If the search term is empty, the condition 'search in item' is True for all items, so all items would be added to results.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the results list after step 2?
A['banana']
B['apple']
C['apple', 'banana']
D[]
💡 Hint
Check the Results List column at step 2 in the execution_table.
At which step does the condition become False?
AStep 1
BStep 3
CStep 4
DStep 5
💡 Hint
Look at the Condition column in the execution_table to find where it is False.
If the search term changed to 'e', which item would be added at step 1?
A'apple'
B'banana'
C'cherry'
D'date'
💡 Hint
Check which items contain 'e' and compare with the first item in the data list.
Concept Snapshot
Search and filtering:
- Start with a list of items.
- Input a search term.
- Check each item if it contains the term.
- Collect matching items.
- Show filtered results.
Full Transcript
This visual execution shows how search and filtering work by checking each item in a list against a search term. Items containing the term are added to the results list. The process repeats until all items are checked, then the filtered list is shown.