Save this video free

3.1 - Conditionals (2026-09-02)

Chris Bourke · 47:43 · Watch on YouTube

Part of University of Nebraska-Lincoln CSCE 155E. See all 14 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Chris Bourke introduces C conditionals as a way to branch from linear control flow, demonstrating how `if`, `else if`, and `else` select code blocks based on Boolean expressions. He explains comparison and logical operators, C truthiness and `stdbool.h`, then uses GCC examples to expose common errors such as chained range comparisons and using `=` instead of `==` in a condition.

Key takeaways

Chapters

0:00 Bits and Bytes Newsletter and Campus Computing Events
4:02 C Conditionals Add Branching to Linear Control Flow
6:37 If-Else Chains Select One Matching Branch
10:08 Compare Huskers and Ohio Scores, Then Order Conditions
14:38 Brace Style, Variable Scope, and Comparison Operators
18:35 Comparison Pitfalls, Tautologies, and Contradictions
31:04 C Truthiness and Boolean Values with stdbool.h
35:53 Logical AND, OR, and Operator Precedence
42:16 Avoid Chained Comparisons and Assignment in Conditions

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:10 [music] [music] >> Take a step out of >> [music] >> the sound and then turn around. Take a look at you. >> [music] >> It's scary. So silly. Pretty important. >> [music] >> You're not much. You're not anything. >> [music] >> Take a step out of the city and [music] then turn around. Take a look at you. You're pretty important. >> [music] >> You're really nowhere. So wasteful.

0:59 So foolish. I'll be calm. >> [music] >> Who said don't look back? Don't believe them. Go for that crazy San Andreas run. Cuz they're going to try and get behind you. Don't you let them do it. You know what I'm talking about? You hear me talking? >> [music] >> You hear me talking? It's pretty scary. It's so robotic. It's pretty scary. It's so robotic. It's pretty scary. [music] It's so robotic. It's pretty scary. It's so robotic. >> [music] >> Take a step out of the country and then turn around.

1:49 Take a look at you. It's amazing. [music] Take a good look. You're not a big deal. You're >> [music] [music] [music] >> Pretty scary. >> Okay, so before we start I just wanted to bring your attention to our weekly e-newsletter bits and bytes. I've been posting this on campus wire for the last couple of weeks, but make sure that you're paying attention to it because it also has you know job listings or internship

2:37 opportunities or for example one of our one of my colleagues is doing a study in dynamic reality and a virtual reality. And if you want to you can go ahead and head on over that they're offering like some money to be a test subject. All you're going to do is spend an hour or two in VR and you can get some money for

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Bourke.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.