If(isNumber(expression)=true & number1!=null & symbol1=null) If(isNumber(expression)=true & number1=null) Here i tried to put integers in var number1 and number2 and operators in var symbol1 and symbol2: function divideAndConquer(expression) Var expression = document.querySelector("#result").value This are onclicks i specified: function clearCalculator()ĭocument.querySelector("#result").value = '' įunction printInteger(inputFromCalculator)ĭocument.querySelector("#result").value += inputFromCalculator įunction printSymbol(inputFromCalculator) How do i get numbers in number1 in number2 and symbols in symbol1 symbol2 and how do i set conditions like first input should not be an operator or if multiple operators then return error? Am posting a question for the first time so please excuse if it not looks clean. If any(compiled_reg.match(topic) for compiled_reg in reg_list): # compile regexp one for all for performance mattersįor cat, cat_dict in category_uri_dict_reg_ems():įor sub_cat, raw_reg_list in cat_ems():Ĭategory_dict_reg_match = reg_list ,ĭf = pd.DataFrame(data, columns=)Ĭarote_cake: ,
![eenie meenie miney mo calculator eenie meenie miney mo calculator](https://i.ytimg.com/vi/6MpS2WsGJCw/maxresdefault.jpg)
How do I get to return all the values of the conditions that are true in the same cell? # Import library
![eenie meenie miney mo calculator eenie meenie miney mo calculator](https://lipstiq.com/wp-content/uploads/2021/12/FQUYkSZ-750x939.jpg)
Result = eval(result + operator + topNumber)
![eenie meenie miney mo calculator eenie meenie miney mo calculator](http://minecult.com/gbe/smoke.png)
So I get the first number and removed from the array If any(compiled_reg.search(topic) for compiled_reg in reg_list):Ġ tom apple, sirop, carotte Fruit - Apple, Cake - Carote cakeġ nick chocolate, banana, apple minie Fruit - Apple, Cake - OreoĬonst sanityExpresion = /^\d+(\d+)+$/Ĭonst numbers = expresion.split(symbolSeparation) Ĭonst symbols = expresion.split(numberSeparation).filter(s => s)