lundi 29 octobre 2018

What the heck is - if( item1 ? item2) : item3 [duplicate]

This question already has an answer here:

I was looking through a java book and i remember reading something about using the ? operator for if statements an I cannot find the reading material anymore. I tried googling the topic but it yielded nothing. So how does the below piece of code

if( itemA ? itemB) : itemC

work

Aucun commentaire:

Enregistrer un commentaire