Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devmg1047y@SirPlatinum else on for loops exist in python but not every other language, my guess is you misread the code?
-
RAZERZ26537y@devmg dang it you beat me to it, well my second one is Lebanon, so I'll go with that :)
Let’s make statistics about from where are the most people out here.
boolean added = false
for (Comment comment: rant.comments) {
if (comment.text.contains(yourHomeland)){
comment.upvote();
added = true;
break;
}
}
if (!added){
rant.writeComment(myHomeland);
}
undefined