question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

return values of functions stored in variables.

See original GitHub issue
$navigationBarTextShadow: 0 -1px 0 colorOpacity($primaryBlack, 0.15);

I just tried this and the color function I made won’t store new color value to the variable, is the expected behavior?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nex3commented, Sep 7, 2013

Are you sure the colorOpacity function is defined somewhere where it’s visible when you define the variable? Can you post the entire Sass file or files you’re compiling?

0reactions
KittyGiraudelcommented, Sep 11, 2013

Are you sure the colorOpacity function is defined somewhere where it’s visible when you define the variable? Can you post the entire Sass file or files you’re compiling?

Indeed, it looks like colorOpacity is simply not defined. Make sure it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Function return values - Learn web development | MDN
Generally, a return value is used where the function is an intermediate step in a calculation of some kind. You want to get...
Read more >
Chapter 6. Return values: getting data from functions
Pass information out of functions by using the return keyword: · Use a function call as a value to assign to a variable...
Read more >
python 3.x - Storing the returned value of a function as a variable
let's say I want to store the second item returned as a variable, how can I do this. I tried x=Func[1] , and...
Read more >
Function return values - IBM
In this example, the return statement initializes a variable of the returned type. The variable answer is initialized with the int value 30....
Read more >
Functions and Return Values | Introduction to Computer Science
Using a return statement will allow us to pass a value back out of the function. That return value can be stored into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found