How do I perform conditional logic programming(If-Else Statements) in an SQL SELECT?

How do I perform conditional logic programming(If-Else Statements) in an SQL SELECT?

a year ago
Anonymous $5YzO3NGzaX
Last Seen
32 seconds ago
Reputation
0
Spam
0.000
Last Seen
45 minutes ago
Reputation
0
Spam
0.000
Last Seen
47 minutes ago
Reputation
0
Spam
0.000
Last Seen
5 minutes ago
Reputation
0
Spam
0.000
Last Seen
34 minutes ago
Reputation
0
Spam
0.000