I was working on a controller, and came across a question mark in the code. What is this used for? I've searched for it but haven't found what it is used for.
if(dfield.isPermissionable()){
string fieldAPIName = dfield.getName().endsWith('Id') && !dfield.isCustom() ? dfield.getName().removeEnd('Id') : dfield.getName();
fieldList.add(fieldAPIName);
fieldAPIToLabelMap.put(fieldAPIName,dfield.getLabel());
selectedFields.add(fieldAPIName);
tempList.add(dfield.getLabel() + ':' + fieldAPIName);
}