Skip to content

Instantly share code, notes, and snippets.

[22:23:08] Interface\AddOns\tekAuc\tooltips.lua:18: attempt to index field 'manualprices' (a nil value)
[C]: ?
Interface\AddOns\tekAuc\tooltips.lua:18: in function <Interface\AddOns\tekAuc\tooltips.lua:7>
[C]: in function `SetBagItem'
Interface\FrameXML\ContainerFrame.lua:815: in function `ContainerFrameItemButton_OnEnter'
[string "*:OnEnter"]:1: in function <[string "*:OnEnter"]:1>
var legalDrivingAge = 18;
var canIDrive = function (myAge) {
if (myAge >= legalDrivingAge)
return true;}
else{return false;}
canIDrive (18)
var yourName = "";
var gender = "male";
var result;
//Line 10 starts an if statement
//Nested in this if statement is an if else statement on lines 11 - 15
//This nested if else statement allows us to check another condition
//We close the first if statement at the start of line 16
if (yourName.length >0 && gender.length >0) {
var yourName = ;
var gender = ;
var result;
//Line 10 starts an if statement
//Nested in this if statement is an if else statement on lines 11 - 15
//This nested if else statement allows us to check another condition
//We close the first if statement at the start of line 16
if () {
var isOdd = function (n) {
if(n%2===0)
return false;
else
return true;
}
var isEven = function (n) {
return !isOdd(n);
};
isOdd (10);
var i=0;
while (i<2) {
console.log("hello");
i++;
}
//or?
var i = 0;
while ( i < 2 ) {
puts "What city do you live in?"
city = gets.chomp
puts "what state?"
state = gets.chomp
puts city + " is a shit hole, and " + state + " is full of assholes"