View difference between Paste ID: d1iDZYrG and 5c4jLX6p
SHOW: | | - or go back to the newest paste.
1
function test(_data) {
2
	var _condition = true;
3
	if (_condition) {
4
		_data.name = "Alex";
5
		_data.species = "Penguin";
6
		return true;
7
	}
8
	return false;
9
}
10
11
var _data = {};
12
var _result = test(_data);
13
if (_result) {
14
	show_message(_data);
15
}