Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

custom function with condition in google sheet

//custom function with Condition
/** 
 * Calculte sales button
 * @customFunction
 */
function salesBonus(salesAmount){
  if(salesAmount>=12000){
    return salesAmount*.25;
  } else if(salesAmount>=10000){
    return salesAmount*.15;
  } else{
    return 0;
  }
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: ngbcollapse error with Reactive Forms 
Typescript :: axios append array to params 
Typescript :: centos remote desktop clients vs remote management for linux 
Typescript :: reader.readasarraybuffer(file) is undefined 
Typescript :: typescript type casting 
Typescript :: npm run multiple scripts sequentially 
Typescript :: adding objects to existing legend 
Typescript :: typescript reduce initial value type 
Typescript :: sorting list of multiple in an ascending order 
Typescript :: react array props typescript type 
Typescript :: how to collect array of objects in one value key in laravel 
Typescript :: matplotlib eats all memory when saving fig 
Typescript :: install beats on rasberry 
Typescript :: how to compile in typescript 
Typescript :: 3 dots for edit bootstrap 
Typescript :: vestacp ports mysql 
Typescript :: typescript hello world 
Typescript :: typescript mocha Cannot use import statement outside a module 
Typescript :: What are the components of the environment? Explain it along with the examples. 
Typescript :: how to setup netflix workflow worker 
Cpp :: cpp starting code 
Cpp :: qstring mid 
Cpp :: 2d vector print 
Cpp :: c++ copy file to another directory 
Cpp :: eosio multi index secondary index 
Cpp :: power function in O(log(n)) time c++ 
Cpp :: arduino get size of array 
Cpp :: what are specialized classes c++ 
Cpp :: c++ dictionary 
Cpp :: compile notepad++ c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =