Erlang – is_alive

Erlang is_alive

In this guide, we will discuss Erlang is_alive. This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.

Syntax

is_alive()

Parameters

  • None

Return Value

This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.

For example

-module(helloworld). 
-export([start/0]). 

start() ->
   io:fwrite("~p",[is_alive()]).

Output

When we run the above program, we will get the following result.

false

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply