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.

New WP calculator - Get rid of placeholder variables

See original GitHub issue

While trying out the new waypoint calculator, which is combined with the cache variable tab, I had somehow a hard time to understand how its used.

@eddiemuc Can we talk through the following example here:

Typical multi cache:

  • Stage 1: You will find the values for x and y at this stage.
  • Stage 2: Go to N 51° 21.(x+1)y5 E006° 3x.650. You will find value z there.
  • Final: Go to N 51° 21.z(y+2)x E006° 3x.(z+3)y3

With the old waypoint calculator I need to fill the calculator for stage 2 and final as follows:

  • Waypoint for Stage 2: N51° 21.AB5 E006° 3C.650 with A=x+1, B=y, C=x
  • Waypoint for Final: N51° 21.ABC E006° 3D.EF3 with A=z, B=y+2, C=x, D=x, E=z+3, F=y

The drawback of these non global variables (lower case ones) are now, that I have to enter the values for x,y,z on each waypoint (where its required).

I would have expected, that the new approach stays the same with (in principle) the only difference, that the values of those lower case variables are now retrieved from the result/value in the variable tab. But either I don`t understand how to achieve this (which would put into question if an average user will understand the changed working mode) or its implemented in a different way (in which case I would ask why).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:36 (36 by maintainers)

github_iconTop GitHub Comments

2reactions
ztNFnycommented, Jan 3, 2022

It is not a unicode character but a material.io icon. But we can think of something else

how about image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default Values and Placeholders - Formidable Forms
Default values will be used when a new entry is created or when a field is conditionally shown. Default values will not replace...
Read more >
Using placeholders - Tables and Charts WordPress Plugin
Use Placeholders as predefined “search and replace” templates that will be replaced with some actual values at execution time in wpDataTables.
Read more >
Product Fields, Addons and Price Calculator for WooCommerce
WooCommerce product fields, product addons and formula price calculator. Absolutely FREE - 23 different field types on your product and order page.
Read more >
Display incorrect placeholder for United Kingdom (UK) in ...
I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active. This bug happens with a default WordPress...
Read more >
Let's Make A JavaScript Calculator | by Ethan Ryan - Medium
Thanks to CSS grid, we can get a nice calculator… ... I decided to add a placeholder for my globalAnswer variable, to more...
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