BigDave
BigDave

Reputation: 81

Erlang case returns wrong result

Hi can someone help with my case issue here is a screenshot if u need the UNPACK code just ask ill be happy to post it.

it returns ok as u can see from the screenshot so I don't understand why.

""

Upvotes: 0

Views: 173

Answers (1)

Soup in Boots
Soup in Boots

Reputation: 2392

Your problem is jsonMsg

A bareword starting with a lower-case character in Erlang creates an atom (effectively an enumeration), causing your match specification to fail.

Change jsonMsg to JsonMsg

Upvotes: 7

Related Questions