Hi! I'm trying to do a forEach loop on an array of objects. Here's my code :
ForEach($individus) { $individu in
if individu.reussite == true {
individu.score -= 10
} else {
individu.score = (individu.levees * 10) + 20 + individu.score
}
}
I have an error on the code in the 'if' saying that "Type '()' cannot conform to 'View'", but I have no idea on how solving this problem.
Post
Replies
Boosts
Views
Activity
In the Metadata folder in my Library, a folder, called CoreSpotlight uses 230GB of storage. That’s a lot, and I’m wondering how to reduce this number. I’m on a MacBook Air M3 2024, in Beta 18.0. Thank you