---
title: "Define guard sequence and what are the valid guard expressions?"  
description: "Define guard sequence and what are the valid guard expressions?"  
author: "Anonymous User"  
published: 2015-06-25  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2659/define-guard-sequence-and-what-are-the-valid-guard-expressions  
category: "erlang"  
tags: ["functional programming", "concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# Define guard sequence and what are the valid guard expressions?

Erlang function clauses can be protected with guards; a clause can be protected only if the guard holds. It is a sequence of guards, separated by semicolon (;), and a guard is a sequence of guard expressions separated by comma (,). The guard sequence is true if at least one of the guards is true.

## Answers

### Answer by Anonymous User

Erlang function clauses can be protected with guards; a clause can be protected only if the guard holds. It is a sequence of guards, separated by semicolon (;), and a guard is a sequence of guard expressions separated by comma (,). The guard sequence is true if at least one of the guards is true.


---

Original Source: https://www.mindstick.com/interview/2659/define-guard-sequence-and-what-are-the-valid-guard-expressions

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
