## Read State with a Parameter

Thanks for making it clear [@fabrice](https://forum.algorand.co/u/fabrice). Just to confirm if I understand you correctly, let me take this use case as an example. Assuming I have a variable balance that equals 100$. Also, I have a condition that I can only use 80% of my balance. In Solidity, I would have a read function that allows me …

Thanks for your detailed explanation, [@fabrice](https://forum.algorand.co/u/fabrice). I think I understand what you mean in the context of the NFT. But let us consider a more generic case. If I would like to create a method in a smart contract that will allow me to pass a parameter and read a global/local state depending on that parameter…
