---
title: "What does assert() do?"  
description: "What does assert() do?"  
author: "Anonymous User"  
published: 2010-10-16  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/31/what-does-assert-do  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# What does assert() do? 

In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.

## Answers

### Answer by Pushpendra Singh

In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.


---

Original Source: https://www.mindstick.com/interview/31/what-does-assert-do

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
