NEWTON
Asked
4 months ago
4
views
0
How do you write an else if statement in Cairo?
ㅤ This question was originally posted on Triality
0
Currently else if is not supported, just if - else - end. You can still provide the same functionality in different ways, ie using bitwise operation in conditionals or just chaining single if statements as such
if x == 1:
#do something
end
if x == 2:
#do something else if
end
if x == 3:
#do something else
end
ㅤ This answer was originally posted on Triality
answered
4 months ago
Will StarkNet wallets work after Q4 2022 Final State Reset? Or do I need to create and merge a new wallet?
How do I run a Pathfinder node?
How to get private key/mnemonic for account that been created using `deploy_account` [StarkNet]?
What the etherscan equivalent for starknet is ?
Do you have any idea on how much is starknetJS request limit?
How to install Cairo v0.10.0 on my device?
How can I write contact memory with Account.execute in starknetjs?