Posts by Tiago Toscano • 49 points
2 posts
- 
		0 votes2 answers2386 viewsA: How to make the if of multiple variables with "or" work?For your logic to work, what you want has to put in the last if the E that is to say int n; puts("ESCOLA UMA OPCAO"); puts("1. opcao1"); puts("2. opcao2"); scanf("%d", &n);… canswered Tiago Toscano 49
- 
		1 votes1 answer2484 viewsA: Mongodb query and return array specific elements within objectsYou can use the Aggregate Unwind to break the array so Voce can group and filter. db.'collection_name'.aggregate([ { $unwind : "$students" }, { $unwind : "$students.class" }, { $unwind :…